voyent
Exception running icefaces app in Glassfish 3  XML
Forum Index -> General Help
Author Message
Marioko

Joined: 14/Nov/2006 00:00:00
Messages: 125
Offline


I am running lastest icefaces version from svn trunk beacuase i need some fixes. My app works perfect in tomcat 6 but when its deployed in Glassfish 3 TP2 i get next exception:

GRAVE: StandardWrapperValve[Persistent Faces Servlet]: PWC1406: Servlet.service() for servlet Persistent Faces Servlet threw exception

java.lang.NoClassDefFoundError: com/sun/enterprise/web/connector/grizzly/AsyncTask

at com.icesoft.faces.webapp.http.servlet.GlassFishAdaptingServlet.<init>(GlassFishAdaptingServlet.java:52)

at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet$GlassFishAdaptingServletFactory.newServlet(EnvironmentAdaptingServlet.java:111)

at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.<init>(EnvironmentAdaptingServlet.java:55)

at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.<init>(MainSessionBoundServlet.java:132)

at com.icesoft.faces.webapp.http.servlet.MainServlet$3.newServlet(MainServlet.java:71)

at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.checkSession(SessionDispatcher.java:62)

at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:40)

at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)

at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)

at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:90)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:306)

at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)

at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:286)

at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:605)

at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:536)

at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:785)

at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:137)

at com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpProtocolFilter.java:129)

at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:61)

at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)

at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:75)

at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:52)

at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:54)

at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:154)

Caused by: java.lang.ClassNotFoundException: com.sun.enterprise.web.connector.grizzly.AsyncTask

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1503)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

... 40 more

 



┬┐Not found grizzly (the core of glassfish) classes?? mm weird ah??

there is something i need to do?

-----------------
Solved:
Something was cached and the server i just restart and clean everything and done! :d
Marioko

Joined: 14/Nov/2006 00:00:00
Messages: 125
Offline


correction, that above exception still is happenning but only when ARP mode is activated.

29-jul-2008 15:07 [INFO ] GlassFish ARP available: true
29-jul-2008 15:07 [INFO ] Jetty ARP available: false
29-jul-2008 15:07 [INFO ] Adapting to GlassFish ARP environment  


Why my app is not finding the core classes of Grizzly framework?? There is some classpath restrictions or separation in glassfish??

thanks for any help u can give me!
ted.goddard

Joined: 26/Oct/2004 00:00:00
Messages: 874
Offline


The API has changed in GlassFish 3; you likely need the grizzly-compat.jar.

http://weblogs.java.net/blog/jfarcand/archive/2008/07/porting_and_com.html
[Email]
Marioko

Joined: 14/Nov/2006 00:00:00
Messages: 125
Offline


ohh thanks!! for now i am testing Jetty 6 and it works perfect, icefaces ARP autodetection is nice as in Glassfish
psterdale

Joined: 31/Jul/2009 00:00:00
Messages: 1
Offline


I am getting below exception when i run CollaberativeCRUD sample application in tomcat 6



javax.servlet.ServletException: Servlet.init() for servlet Persistent Faces Servlet threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)

root cause

java.lang.NoClassDefFoundError: com/sun/enterprise/web/connector/grizzly/AsyncTask
com.icesoft.faces.webapp.http.servlet.GlassFishAdaptingServlet.<init>(GlassFishAdaptingServlet.java:52)
com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet$GlassFishAdaptingServletFactory.newServlet(EnvironmentAdaptingServlet.java:111)
com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.<init>(EnvironmentAdaptingServlet.java:55)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.<init>(SessionDispatcher.java:39)
com.icesoft.faces.webapp.http.servlet.MainServlet$3.<init>(MainServlet.java:94)
com.icesoft.faces.webapp.http.servlet.MainServlet.init(MainServlet.java:93)
com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.init(PersistentFacesServlet.java:45)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
ted.goddard

Joined: 26/Oct/2004 00:00:00
Messages: 874
Offline


Check for a Grizzly or GlassFish .jar file in your application .war. ICEfaces is auto-detecting GlassFish, but, this is not what you want on Tomcat 6.
[Email]
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team