Hi Jan
I have a complete maven project that works in GlassFish 2.1 (clean domain)
and does not work in Glassfish 3 build 65
(sorry there is some other stuff in the zip)
You will need to get the maven files from Icefaces :
http://www.icefaces.org/main/downloads/os-downloads.iface (5meg) and export
it into your repository. The zip should tell you how.
then just : mvn package
Here is the full stack trace in Glassfish 3
[#|2009-09-29T15:18:22.274+0200|INFO|glassfish|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=27;_ThreadName=Thread-3;|Deployment
of testicefaces-1.0.1-SNAPSHOT done is 4,934 ms|#]
[#|2009-09-29T15:18:57.276+0200|WARNING|glassfish|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=35;_ThreadName=Thread-3;|StandardWrapperValve[Persistent
Faces Servlet]: PWC1406: Servlet.service() for servlet Persistent Faces
Servlet threw exception
java.lang.Exception: java.lang.ClassNotFoundException:
org.icefaces.x.context.BridgeFacesContext2
at com.icesoft.faces.context.View.servePage(View.java:142)
at
com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52)
at
com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
at
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
at
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
at
com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
at
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
at
com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
at
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
at
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1522)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:292)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:145)
at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753)
at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661)
at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:379)
at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:360)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException:
org.icefaces.x.context.BridgeFacesContext2
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:949)
at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1420)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.icesoft.faces.context.View$2.serve(View.java:68)
at com.icesoft.faces.context.View.servePage(View.java:139)
... 36 more
|#]
regards
Richard.
2009/9/28 Jan Luehe <Jan.Luehe_at_sun.com>
> Hi Richard,
>
>
> On 09/28/09 05:11, Richard Kolb wrote:
>
>>
>> Hi
>>
>> I have just tried a war that deploys on GlassFish 2.1
>> And when I browse to the context I get a HTTP 404
>>
>> i.e. I don't see my .jspx files
>>
>> There is nothing interesting in the logs to tell why this is happening.
>>
>> When I browse manually to the jspx I get :
>> java.lang.ClassNotFoundException: org.icefaces.x.context.BridgeFacesContext2
>>
>>
>> If no one else has this problem, I will debug properly.
>>
>
> We've disabled directory listings in GF v3 by default, for security
> reasons.
>
> To enable them, check the declaration of the "default" servlet in your
> domain's default-web.xml and change its "listings" init param from:
>
> <init-param>
> <param-name>listings</param-name>
> <param-value>false</param-value>
> </init-param>
>
> to
>
> <init-param>
> <param-name>listings</param-name>
> <param-value>true</param-value>
> </init-param>
>
> As for the ClassNotFoundException, can you send the complete stacktrace
> from your server.log?
>
> Thanks,
>
> Jan
>
>
>
>> regards
>> Richard.
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>