4 Replies Latest reply on Aug 8, 2007 8:31 AM by Viggo Navarsete

    Error with JSF webapp on AS 4.2.1 + Portal 2.6

    Angelo D'Angelo Newbie

      Hi all,
      I'm using JBoss Portal 2.6 with JBoss AS 4.2.1. I need to deploy a simple jsf application in the same server, but when I try to access to this application I obtain the following error:

      13:07:41,000 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
      java.lang.ClassCastException: org.apache.catalina.core.ApplicationContextFacade
       at com.sun.faces.portlet.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64)
       at org.jboss.portal.faces.portlet.JSFMetaBridgeFacesContextFactoryImpl.getFacesContext(JSFMetaBridgeFacesContext
      FactoryImpl.java:47)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:239)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:595)
      

      Could you, please, help me?
      Thank you in advance.
      Angelo

        • 1. Re: Error with JSF webapp on AS 4.2.1 + Portal 2.6
          Chris Laprun Master

          Please try again with Portal 2.6.1. We have solved several JSF-related issues.

          • 3. Re: Error with JSF webapp on AS 4.2.1 + Portal 2.6
            Viggo Navarsete Expert

            I'm also having a similar problem, first using Portal 2.6.0, but also after upgrading to Portal 2.6.1.GA. The way I upgraded the portal was to remove the jboss-portal.sar from my deploy directory, and replacing it with the new one. Could there be cached information which causes the same error as prior to the upgrade? Do I also have to upgrade the JBoss AS server from 4.2.0.GA to 4.2.1?

            • 4. Re: Error with JSF webapp on AS 4.2.1 + Portal 2.6
              Viggo Navarsete Expert

              Well, the stacktrace is actually not the same... Here's the new one:

              14:20:37,446 WARN [SkinFactoryImpl] Init parameter for a skin name changed to org.richfaces.SKIN
              14:20:40,342 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
              java.lang.ClassCastException: org.apache.catalina.core.ApplicationContextFacade
               at com.sun.faces.portlet.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64)
               at org.ajax4jsf.resource.InternetResourceService.getFacesContext(InternetResourceService.java:317)
               at org.ajax4jsf.resource.InternetResourceService.getResourceContext(InternetResourceService.java:251)
               at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:162)
               at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144)
               at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:259)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
               at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
               at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
               at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
               at java.lang.Thread.run(Thread.java:595)