7 Replies Latest reply on Sep 29, 2009 4:27 PM by Luiz Abrahao

    Help on Seam 2.2.0, ICEfaces 1.8.1 and Glassfish 2.1

    Luiz Abrahao Newbie

      Hello,


      I've got a set of applications already developed but I want to port them to Seam because I'm sure Seam is the way to go from now on. I'm feeling quite frustrated though; it's been almost a month since I started my Seam learning and I still can't get a basic application running.


      I'm using: Seam 2.2.0.GA, Glassfish 2.1, ICEfaces 1.8.1, Eclipse 3.5 and Seam Tools 3.1.0-M3.


      After generating an application with the wizard I modify some files and classes to be able to run with the ICEfaces on Glassfish.


      What happens: I can open the access the application only when I deploy it for the first time on the server, if I undeploy and redeploy I get the following stack trace:


      [#|2009-09-28T12:18:20.448+0100|WARNING|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=e0e97c53-c4d5-46a0-8b3a-a2b64eb6175b;|phase(RENDER_RESPONSE 6,com.icesoft.faces.context.BridgeFacesContext@12fa7c8) threw exception: java.lang.ClassCastException: org.jboss.seam.Component cannot be cast to org.jboss.seam.Component org.jboss.seam.Component cannot be cast to org.jboss.seam.Component
      org.jboss.seam.Component.forName(Component.java:1947)
      org.jboss.seam.Component.getInstance(Component.java:2005)
      org.jboss.seam.Component.getInstance(Component.java:2000)
      org.jboss.seam.Component.getInstance(Component.java:1994)
      org.jboss.seam.Component.getInstance(Component.java:1967)
      org.jboss.seam.Component.getInstance(Component.java:1962)
      org.jboss.seam.web.Parameters.instance(Parameters.java:81)
      org.jboss.seam.document.DocumentStorePhaseListener.beforePhase(DocumentStorePhaseListener.java:36)
      com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
      com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19)
      com.icesoft.faces.context.View$2$1.respond(View.java:48)
      com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:201)
      com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
      com.icesoft.faces.context.View$2.serve(View.java:76)
      com.icesoft.faces.context.View.servePage(View.java:139)
      com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52)
      com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
      com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
      com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
      com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
      com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
      com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
      com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
      com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
      com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
      com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
      org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
      com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
      org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
      com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
      com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
      |#]
      
      [#|2009-09-28T12:18:20.900+0100|WARNING|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=e0e97c53-c4d5-46a0-8b3a-a2b64eb6175b;|executePhase(RENDER_RESPONSE 6,com.icesoft.faces.context.BridgeFacesContext@12fa7c8) threw exception
      javax.faces.FacesException: Problem in renderResponse: /layout/menu.xhtml @10,25 propagation="none" object is not an instance of declaring class
           at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:296)
           at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
           at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
           at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
           at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19)
           at com.icesoft.faces.context.View$2$1.respond(View.java:48)
           at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:201)
           at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
           at com.icesoft.faces.context.View$2.serve(View.java:76)
           at com.icesoft.faces.context.View.servePage(View.java:139)
           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.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
           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 com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
           at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
           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:288)
           at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
           at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
           at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
           at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
           at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
           at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
           at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
           at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
      Caused by: com.sun.facelets.tag.TagAttributeException: /layout/menu.xhtml @10,25 propagation="none" object is not an instance of declaring class
           at com.sun.facelets.tag.BeanPropertyTagRule$LiteralPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:53)
           at com.sun.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:36)
           at com.sun.facelets.tag.MetaTagHandler.setAttributes(MetaTagHandler.java:62)
           at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:144)
           at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
           at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
           at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
           at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
           at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
           at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
           at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
           at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
           at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:140)
           at com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:65)
           at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
           at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
           at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
           at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
           at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
           at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
           at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109)
           at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
           at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
           at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:140)
           at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
           at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
           at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
           at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
           at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:274)
           ... 65 more
      Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at com.sun.facelets.tag.BeanPropertyTagRule$LiteralPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:49)
           ... 99 more
      |#]
      
      [#|2009-09-28T12:18:20.994+0100|WARNING|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=b1da27a2-5ea3-4f28-9a6b-df4d40928f53;|phase(RENDER_RESPONSE 6,com.icesoft.faces.context.BridgeFacesContext@1f2fdc8) threw exception: java.lang.ClassCastException: org.jboss.seam.Component cannot be cast to org.jboss.seam.Component org.jboss.seam.Component cannot be cast to org.jboss.seam.Component
      org.jboss.seam.Component.forName(Component.java:1947)
      org.jboss.seam.Component.getInstance(Component.java:2005)
      org.jboss.seam.Component.getInstance(Component.java:2000)
      org.jboss.seam.Component.getInstance(Component.java:1994)
      org.jboss.seam.Component.getInstance(Component.java:1967)
      org.jboss.seam.Component.getInstance(Component.java:1962)
      org.jboss.seam.web.Parameters.instance(Parameters.java:81)
      org.jboss.seam.document.DocumentStorePhaseListener.beforePhase(DocumentStorePhaseListener.java:36)
      com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
      com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19)
      com.icesoft.faces.context.View$2$1.respond(View.java:48)
      com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:201)
      com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
      com.icesoft.faces.context.View$2.serve(View.java:76)
      com.icesoft.faces.context.View.servePage(View.java:139)
      com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52)
      com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
      com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
      com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
      com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
      com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
      com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
      com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
      com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
      com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
      com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
      org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
      com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
      org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
      com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
      com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
      |#]
      
      [#|2009-09-28T12:18:20.994+0100|WARNING|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=b1da27a2-5ea3-4f28-9a6b-df4d40928f53;|executePhase(RENDER_RESPONSE 6,com.icesoft.faces.context.BridgeFacesContext@1f2fdc8) threw exception
      javax.faces.FacesException: Problem in renderResponse: /debug.xhtml Not Found in ExternalContext as a Resource
           at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:296)
           at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
           at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
           at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
           at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19)
           at com.icesoft.faces.context.View$2$1.respond(View.java:48)
           at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:201)
           at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
           at com.icesoft.faces.context.View$2.serve(View.java:76)
           at com.icesoft.faces.context.View.servePage(View.java:139)
           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.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
           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 com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
           at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
           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:288)
           at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
           at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
           at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
           at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
           at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
           at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
           at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
           at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
      Caused by: java.io.FileNotFoundException: /debug.xhtml Not Found in ExternalContext as a Resource
           at com.sun.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:121)
           at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:91)
           at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:268)
           ... 65 more
      



      When I get the application running the link Debug Console doesn't work as well as the login mechanism but it's another problem I suppose.


      I checked and the jboss-seam-debug.jar is on my classpath.


      I haven't post any of my XML configuration files because the post would be too big. I could do so if it would help anyone help me out.


      Any help is much appreciated,


      Many Thanks,
      Luiz Filipe

        • 1. Re: Help on Seam 2.2.0, ICEfaces 1.8.1 and Glassfish 2.1
          judy guglielmin Novice

          It appears that you have the DocumentStore configured. Are you using seam-pdf?

          • 2. Re: Help on Seam 2.2.0, ICEfaces 1.8.1 and Glassfish 2.1
            Luiz Abrahao Newbie

            Thanks for your help!


            I shouldn't be using, at least I didn't change any file in order to use it; Here are my XML configuration files:


            faces-config.xml:


            <application>
                 <view-handler>com.icesoft.faces.facelets.D2DFaceletViewHandler</view-handler>
                 <locale-config>
                      <default-locale>en</default-locale>
                 </locale-config>
            </application>



            web.xml:


            <context-param>
              <param-name>facelets.DEVELOPMENT</param-name>
              <param-value>true</param-value>
             </context-param>
             <context-param>
              <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
              <param-value>.xhtml</param-value>
             </context-param>
             <context-param>
              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
              <param-value>server</param-value>
             </context-param>
             <context-param>
              <param-name>com.icesoft.faces.actionURLSuffix</param-name>
              <param-value>.seam</param-value>
             </context-param>
             <context-param>
              <param-name>com.icesoft.faces.synchronousUpdate</param-name>
              <param-value>false</param-value>
             </context-param>
             <context-param>
              <param-name>com.icesoft.faces.doJSFStateManagement</param-name>
              <param-value>true</param-value>
             </context-param>
             <context-param>
              <param-name>com.icesoft.faces.standardRequestScope</param-name>
              <param-value>true</param-value>
             </context-param>
             
             <filter>
              <filter-name>Seam Filter</filter-name>
              <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
             </filter>
             <filter-mapping>
              <filter-name>Seam Filter</filter-name>
              <url-pattern>/*</url-pattern>
             </filter-mapping>
             
             <listener>
              <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
             </listener>
             <listener>
              <listener-class>com.icesoft.faces.util.event.servlet.ContextEventRepeater</listener-class>
             </listener>
             
             <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
             </servlet>
             <servlet>
              <servlet-name>Seam Resource Servlet</servlet-name>
              <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
             </servlet>
             <servlet>
              <servlet-name>Persistent Faces Servlet</servlet-name>
              <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
             </servlet>
             <servlet>
              <servlet-name>Blocking Servlet</servlet-name>
              <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
             </servlet>
             
             <servlet-mapping>
              <servlet-name>Persistent Faces Servlet</servlet-name>
              <url-pattern>*.seam</url-pattern>
             </servlet-mapping>
             <servlet-mapping>
              <servlet-name>Seam Resource Servlet</servlet-name>
              <url-pattern>/seam/resource/*</url-pattern>
             </servlet-mapping>
             <servlet-mapping>
              <servlet-name>Persistent Faces Servlet</servlet-name>
              <url-pattern>/xmlhttp/*</url-pattern>
             </servlet-mapping>
             <servlet-mapping>
              <servlet-name>Blocking Servlet</servlet-name>
              <url-pattern>/block/*</url-pattern>
             </servlet-mapping>
             
             <welcome-file-list>
              <welcome-file>index.html</welcome-file>
             </welcome-file-list>
             
             <security-constraint>
              <display-name>Restrict raw XHTML Documents</display-name>
              <web-resource-collection>
               <web-resource-name>XHTML</web-resource-name>
               <url-pattern>*.xhtml</url-pattern>
              </web-resource-collection>
              <auth-constraint/>
             </security-constraint>
             
             <ejb-local-ref>
              <ejb-ref-name>euklepedia/AuthenticatorAction/local</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <local-home/>
              <local>com.eukleia.euklepedia.session.Authenticator</local>
             </ejb-local-ref>
             
            </web-app>



            components.xml:




               <core:init debug="true" jndi-pattern="java:comp/env/test/#{ejbName}/local"/>
            
               <core:manager concurrent-request-timeout="500"
                             conversation-timeout="120000"
                             conversation-id-parameter="cid"
                             parent-conversation-id-parameter="pid"/>
            
               <!-- Make sure this URL pattern is the same as that used by the Faces Servlet -->
               <web:hot-deploy-filter url-pattern="*.seam"/>
            
               <persistence:managed-persistence-context name="entityManager" auto-create="true"
                                  persistence-unit-jndi-name="java:/euklepediaEntityManagerFactory"/>
            
               <drools:rule-base name="securityRules">
                  <drools:rule-files>
                     <value>/security.drl</value>
                  </drools:rule-files>
               </drools:rule-base>
            
               <security:rule-based-permission-resolver security-rules="#{securityRules}"/>
            
               <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
            
               <event type="org.jboss.seam.security.notLoggedIn">
                  <action execute="#{redirect.captureCurrentView}"/>
               </event>
               <event type="org.jboss.seam.security.loginSuccessful">
                  <action execute="#{redirect.returnToCapturedView}"/>
               </event>
            
               <mail:mail-session host="localhost" port="25"/>
            </components>



            The /layout/menu.xhtml file:


            <ice:panelGroup xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:h="http://java.sun.com/jsf/html"
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:s="http://jboss.com/products/seam/taglib"
                 xmlns:ice="http://www.icesoft.com/icefaces/component">
                 <ice:panelGroup>
                      <h:outputText value="#{projectName}:" />
                      <s:link id="menuHomeId" view="/home.xhtml" value="Home"
                           propagation="none" />
                 </ice:panelGroup>
                 <!-- @newMenuItem@ -->
                 <ice:panelGroup >
                      <h:outputText id="menuWelcomeId"
                           value="signed in as: #{credentials.username}"
                           rendered="#{identity.loggedIn}" />
                      <s:link id="menuLoginId" view="/login.xhtml" value="Login"
                           rendered="#{not identity.loggedIn}" propagation="none" />
                      <s:link id="menuLogoutId" view="/home.xhtml"
                           action="#{identity.logout}" value="Logout"
                           rendered="#{identity.loggedIn}" propagation="none" />
                 </ice:panelGroup>
            </ice:panelGroup>



            Thank you very much for your time,
            Luiz Filipe

            • 3. Re: Help on Seam 2.2.0, ICEfaces 1.8.1 and Glassfish 2.1
              judy guglielmin Novice

              Check to make sure that jboss-seam-pdf (and there are probably other jboss-seam jars that you aren't using) jar is not included in your deployed application.


              Did you check out the available examples from ICEfaces downloads page?  component-showcase for Seam is actually a war deployment and has a glassfish target for build.

              • 4. Re: Help on Seam 2.2.0, ICEfaces 1.8.1 and Glassfish 2.1
                Luiz Abrahao Newbie

                I removed all jboss-seam- files apart from the debug and ui jars. I still get the very same stack trace though.


                Now my WAR file has:



                • common-digester.jar

                • jboss-seam-debug.jar

                • jboss-seam-ui.jar

                • jsf-facelets.jar



                the EAR:



                • antlt-runtime.jar

                • drools-compiler.jar

                • drools-core.jar

                • jboss-el.jar

                • jboss-seam.jar

                • jbpm-jpdl.jar

                • mvel2.jar



                the server's domain lib folder has:



                • backport-util-concurrent.jar

                • commons-beanutils.jar

                • commons-collections.jar

                • commons-digester.jar

                • commons-fileupload.jar

                • commons-logging.jar

                • dom4j.jar

                • FastInfoset.jar

                • hibernate-annotations.jar

                • hibernate-commons-annotations.jar

                • hibernate-core.jar

                • hibernate-search.jar

                • hibernate-validator.jar

                • icefaces.jar

                • icefaces-comps.jar

                • icefaces-facelets.jar

                • javassist.jar

                • jxl.jar

                • krysalis-jCharts-1.0.0-alpha-1.jar

                • log4j-1.2.15.jar

                • slf4j-api-1.5.8.jar

                • grizzly-compat.jar

                • slf4j-log4j12-1.5.8.jar

                • jsf-api-1.2.jar



                I already downloaded that Seam example from ICEfaces and looked up any information on their manuals. I could get how I should set up some of the configuration files from the example.


                I also generated an application with the seam-gen and compared the XML files and everything seems to be on their right place.


                I was wondering if it's not related with facelets, I have no experience with it (as with Seam as you can see).


                Thanks for your time,
                Luiz Filipe

                • 5. Re: Help on Seam 2.2.0, ICEfaces 1.8.1 and Glassfish 2.1
                  judy guglielmin Novice

                  remove jsf-facelets from war.  icefaces-facelets extends from this. 


                  Also use


                      <view-handler>com.icesoft.faces.facelets.D2DSeamFaceletViewHandler</view-handler>
                  



                  in faces-config.


                  If you did a seam-gen choosing ICEfaces, you would get the proper configuration for the configuration files.


                  • 6. Re: Help on Seam 2.2.0, ICEfaces 1.8.1 and Glassfish 2.1
                    judy guglielmin Novice

                    Also, don't forget to clean out any temporary files on your application server that might still make reference to the DocumentStore classes.

                    • 7. Re: Help on Seam 2.2.0, ICEfaces 1.8.1 and Glassfish 2.1
                      Luiz Abrahao Newbie

                      Judy,


                      I got the application running! Now I'm able to see the debug page as well!


                      I still got some issues to fix (like the login doesn't work and I can't undeploy and redeploy the application) but I suppose they are Seam related.


                      Thank you very much for your help. Much appreciated.


                      Luiz Filipe