2 Replies Latest reply on Dec 30, 2011 6:19 PM by Kai Reichert

    Jboss AS 7 jsf 1.2 Richfaces 3.3.3 not found

    Hrvoje Jo Newbie

      Hello!

       

      I've just migrated Java EE application from Jboss 5 to Jboss 7.0.2. final. Jsf 1.2 is working but I cannot impement richfaces 3.3.3. I get message:

       

       

      13:25:10,127 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (http--127.0.0.1-8080-1) JSF1004: Cannot instantiate component of type org.richfaces.panel

      13:25:10,131 SEVERE [facelets.viewhandler] (http--127.0.0.1-8080-1) Error Rendering View[/dummy.xhtml]: javax.faces.FacesException: Expression Error: Named Object: org.richfaces.panel not found.

          at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:571) [jsf-impl-1.2_15-jbossorg-1.jar:1.2_15.jbossorg-1-20110810-SNAPSHOT]

          at com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHandler.java:289) [jsf-facelets.jar:]

          at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:160) [jsf-facelets.jar:]

          at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) [jsf-facelets.jar:]

          at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:360) [jsf-facelets.jar:]

          at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:190) [jsf-facelets.jar:]

          at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) [jsf-facelets.jar:]

          at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) [jsf-facelets.jar:]

          at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:39) [jsf-facelets.jar:]

          at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95) [jsf-facelets.jar:]

          at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:526) [jsf-facelets.jar:]

          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:569) [jsf-facelets.jar:]

          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110) [jsf-impl-1.2_15-jbossorg-1.jar:1.2_15.jbossorg-1-20110810-SNAPSHOT]

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_15-jbossorg-1.jar:1.2_15.jbossorg-1-20110810-SNAPSHOT]

          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-1.2_15-jbossorg-1.jar:1.2_15.jbossorg-1-20110810-SNAPSHOT]

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) [jsf-api-1.2_15-jbossorg-1.jar:1.2_15.jbossorg-1-20110810-SNAPSHOT]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at com.ekonerg.jsf.filter.ViewExpiredHandlerFilter.doFilter(ViewExpiredHandlerFilter.java:88) [eko-jsf-1.0.jar:]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [richfaces-impl-3.3.3.Final.jar:]

          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [richfaces-impl-3.3.3.Final.jar:]

          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [richfaces-impl-3.3.3.Final.jar:]

          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [richfaces-impl-3.3.3.Final.jar:]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

          at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

          at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) [jboss-as-jpa-7.0.2.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

       

       

      This is faces-config.xml

       

      ...

      <application>
      <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>

      ...

       

      and this is web.xml

      <filter-mapping>
      <filter-name>ajax4jsf</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      <dispatcher>REQUEST</dispatcher>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>INCLUDE</dispatcher>
      </filter-mapping>
      <filter-mapping>
      <filter-name>ViewExpiredHandlerFilter</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      <dispatcher>REQUEST</dispatcher>
      <dispatcher>FORWARD</dispatcher>
      </filter-mapping>

      ....

      <display-name>Ajax4jsf Filter</display-name>
      <filter-name>ajax4jsf</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>
      <!-- Faces Servlet -->
      <servlet>
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>

      ....

       

       

      Any clues why is that so?

        • 1. Re: Jboss AS 7 jsf 1.2 Richfaces 3.3.3 not found
          Hrvoje Jo Newbie

          Solved by downloading JBoss 7.1.0 CR1

           

          What was the cause of this problem, still I don't know.

          • 2. Re: Jboss AS 7 jsf 1.2 Richfaces 3.3.3 not found
            Kai Reichert Newbie

            I can confirm the same behaviour with a jsf 1.2 and richfaces 3.3.3 application of my own.

             

            But it is very dissatisfying not to know why this error occurs in the 7.0.2 version.

             

            Hrvoje did you have such a jboss-deployment-structure.xml, too?

             

            <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">

                <deployment>

                    <exclusions>

                        <module name="javax.faces.api" slot="main"/>

                        <module name="com.sun.jsf-impl" slot="main"/>

                    </exclusions>

                    <dependencies>

                        <module name="org.apache.log4j" />

                        <module name="org.dom4j" />

                        <module name="org.apache.commons.logging" />

                        <module name="org.apache.commons.collections" />

                        <module name="javax.faces.api" slot="1.2" />

                        <module name="com.sun.jsf-impl" slot="1.2" />

                        <module name="org.slf4j" />

                    </dependencies>

                </deployment>

            </jboss-deployment-structure>

             

            It seems as if for some reasons the bundled richfaces jars in the WEB-INF/lib directory are not loaded?

             

            I would not mark this post as solved, btw