我使用Eclipse + Glassfish的4.0錯誤Glassfish上
當我部署一個簡單的項目,會出現以下錯誤:
cannot Deploy Testmart
deploy is failing=Error occurred during deployment: Exception while loading
the app : java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: java.lang.RuntimeException:
Servlet web service endpoint '' failure. Please see server.log for more details.
編輯:
ProductCatalog.java類別:
import org.hamed.train.service.ProductServiceImp;
@WebService
public class ProductCatalog {
ProductServiceImp productService = new ProductServiceImp();
@WebMethod
public List<String> getProducts() {
return productService.getProductCategories();
}
public List<String> getProducts(String category) {
return productService.getProducts(category);
}
}
system.log
內容: http://txs.io/B7P
從'server.log'粘貼堆棧跟蹤 – AKS
什麼是servlet代碼(尤其是'@WebServlet'註釋)和部署描述符? –
我沒有在任何地方使用過@ @ WebServlet!我是不是該? –