我仍在尝试让JavaFX-samples-2.2.25 DataApp为我工作。我按照它的指示再次从头开始,并没有改变/添加任何东西。我收到以下glassfish服务器错误:
INFO: EJB5181:Portable JNDI names for EJB CumulativeLiveSalesFacadeREST: [java:global/DataAppServer/CumulativeLiveSalesFacadeREST, java:global/DataAppServer/CumulativeLiveSalesFacadeREST!com.javafx.experiments.dataapp.server.service.CumulativeLiveSalesFacadeREST]
INFO: EJB5181:Portable JNDI names for EJB RegionFacadeREST: [java:global/DataAppServer/RegionFacadeREST!com.javafx.experiments.dataapp.server.service.RegionFacadeREST, java:global/DataAppServer/RegionFacadeREST]
INFO: EJB5181:Portable JNDI names for EJB LiveSalesListFacadeREST: [java:global/DataAppServer/LiveSalesListFacadeREST!com.javafx.experiments.dataapp.server.service.LiveSalesListFacadeREST, java:global/DataAppServer/LiveSalesListFacadeREST]
INFO: WELD-000900 2.0.0 (SP1)
WARNING: Class 'javax.ejb.PostActivate' not found, interception based on it is not enabled
WARNING: Class 'javax.ejb.PrePassivate' not found, interception based on it is not enabled
INFO: WebModule[null] ServletContext.log():Marking servlet ServletAdaptor as unavailable
SEVERE: WebModule[/DataAppServer]Error loading WebappClassLoader (delegate=true; repositories=WEB-INF/classes/) com.sun.jersey.spi.container.servlet.ServletContainer
java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1761)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1611)
at org.apache.catalina.core.StandardWrapper.loadServletClass(StandardWrapper.java:1533)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1399)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1381)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5670)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5912)
at com.sun.enterprise.web.WebModule.start(WebModule.java:691)
我需要做任何额外的配置或安装吗?
修改
glassfish随NetBeans 3.7.1 IDE一起安装。
答案 0 :(得分:6)
我有同样的问题,根据this,您需要将servlet类从com.sun.jersey.spi.container.servlet.ServletContainer更改为org.glassfish.jersey.servlet.ServletContainer中的web.xml配置文件。
答案 1 :(得分:1)
我使用netbeans 7.4和glassfish 4.0运行dataapp样本2.2.45,2.2.25也应该是同样的事情。我有同样的问题。我所做的是在DataappClient(jersey-bundles-1.17.1和jersey-client-1.17.1)中使用这两个罐子。由于Glassfish 4.0是“越野车”,我使用的是Glassfish-3.1.2.2而不是4.0。