1 2 Previous Next 22 Replies Latest reply on May 6, 2009 6:43 AM by Nick Belaevski

    Intégation Richfaces on JBOSS 4.2.3

    Morsi Jallouli Newbie

      Hello,
      My jsf project was successfully running on jboss 4.2.3, so, I attempted to integrate richfaces 3.3.0 on my project to make it rich, but, the problems begans.
      The WEB-INF/lib contains :
      commons-beanutils.jar
      commons-collections.jar
      commons-digester.jar
      commons-logging.jar
      jsf-api.jar
      jsf-imp.jar
      richfaces-api-3.3.0.GA.jar
      richfaces-imp-3.3.0.GA.jar
      richfaces-ui.3.3.0.GA.jar

      that's my Web.xml :

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlnssi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
      <context-param>
      <param-name>javax.faces.CONFIG_FILES</param-name>
      <param-value>/WEB-INF/faces-config.xml</param-value>
      </context-param>
      
      <context-param>
      <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
      <param-value>false</param-value>
      </context-param>
      
      <display-name>a4jEchoText</display-name>
      <context-param>
      <param-name>org.richfaces.SKIN</param-name>
      <param-value>deepMarine</param-value>
      </context-param>
      <filter>
      <display-name>RichFaces Filter</display-name>
      <filter-name>richfaces</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>
      </filter>
      <filter-mapping>
      <filter-name>richfaces</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      <dispatcher>REQUEST</dispatcher>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>INCLUDE</dispatcher>
      </filter-mapping>
      
      
      
      <servlet>
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>0</load-on-startup>
      </servlet>
      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.faces</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
      </web-app>
      


      That's the stacktrace :
      21:57:52,100 INFO [TomcatDeployer] deploy, ctxPath=/ExempleJSF, warUrl=.../deploy/ExempleJSF.war/
      21:57:54,886 ERROR [application] JSF1029: The specified InjectionProvider implementation 'org.jboss.web.jsf.integration.injection.JBossInjectionProvider' does not implement the InjectionProvider interface.
      21:57:54,895 INFO [application] JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
      21:58:01,497 ERROR [[/ExempleJSF]] Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
      java.lang.ClassCastException: com.sun.faces.config.WebConfiguration
       at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:154)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:144)
       at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:71)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
       at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
       at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
       at org.jboss.web.WebModule.startModule(WebModule.java:83)
       at org.jboss.web.WebModule.startService(WebModule.java:61)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBean
      


      thinks for help

        • 1. Re: Intégation Richfaces on JBOSS 4.2.3
          Nick Belaevski Master

          Hello,

          Remove jsf-api and jsf-impl.

          • 2. Re: Intégation Richfaces on JBOSS 4.2.3
            Morsi Jallouli Newbie

            Finally, it's work ;)
            Thanks

            • 3. Re: Intégation Richfaces on JBOSS 4.2.3
              Morsi Jallouli Newbie

              Infortunately, I have another problem,
              i wanna to integrate richfaces to another web project that implement ejb. So, I had this error message

              org.apache.jasper.JasperException: /test.jsp(29,6) Unable to load class org.richfaces.taglib.CalendarTag : /test.jsp(29,6) Unable to load class org.richfaces.taglib.CalendarTag
              


              that's The Web.xml :
              <?xml version="1.0" encoding="UTF-8"?>
              
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
              
              <web-app id="web-app_1">
               <description><![CDATA[EJBCA Administration web]]></description>
              <context-param>
              <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
              <param-value>false</param-value>
              </context-param>
              
              <display-name>a4jEchoText</display-name>
              <context-param>
              <param-name>org.richfaces.SKIN</param-name>
              <param-value>deepMarine</param-value>
              </context-param>
              <filter>
              <display-name>RichFaces Filter</display-name>
              <filter-name>richfaces</filter-name>
              <filter-class>org.ajax4jsf.Filter</filter-class>
              </filter>
              <filter-mapping>
              <filter-name>richfaces</filter-name>
              <servlet-name>Faces Servlet</servlet-name>
              <dispatcher>REQUEST</dispatcher>
              <dispatcher>FORWARD</dispatcher>
              <dispatcher>INCLUDE</dispatcher>
              </filter-mapping>
              
               <context-param>
               <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
               <param-value>server</param-value>
               </context-param>
              
               <context-param>
               <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
               <param-value>.jsp</param-value>
               </context-param>
              
               <context-param>
               <param-name>com.sun.faces.numberOfViewsInSession</param-name>
               <param-value>15</param-value>
               </context-param>
              
               <context-param>
               <param-name>numberOfLogicalViews</param-name>
               <param-value>15</param-value>
               </context-param>
              
               <context-param>
               <param-name>com.sun.faces.verifyObjects</param-name>
               <param-value>false</param-value>
               </context-param>
              
               <context-param>
               <param-name>com.sun.faces.forceLoadConfiguration</param-name>
               <param-value>false</param-value>
               </context-param>
              
               <context-param>
               <param-name>com.sun.faces.disableVersionTracking</param-name>
               <param-value>false</param-value>
               </context-param>
              
               <context-param>
               <param-name>com.sun.faces.enableHtmlTagLibValidator</param-name>
               <param-value>false</param-value>
               </context-param>
              
               <context-param>
               <param-name>com.sun.faces.preferXHTML</param-name>
               <param-value>false</param-value>
               </context-param>
              
               <context-param>
               <param-name>com.sun.faces.compressViewState</param-name>
               <param-value>true</param-value>
               </context-param>
              
               <context-param>
               <param-name>com.sun.faces.responseBufferSize</param-name>
               <param-value>4096</param-value>
               </context-param>
              
               <context-param>
               <param-name>com.sun.faces.clientStateWriteBufferSize</param-name>
               <param-value>8192</param-value>
               </context-param>
              
               <context-param>
               <param-name>com.sun.faces.validateXml</param-name>
               <param-value>false</param-value>
               </context-param>
              
               <context-param>
               <param-name>com.sun.faces.displayConfiguration</param-name>
               <param-value>false</param-value>
               </context-param>
               <context-param>
               <param-name>facelets.LIBRARIES</param-name>
               <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
               <description><![CDATA[apache myfaces tomahawk components taglib]]></description>
               </context-param>
              </web-app>
              




              • 4. Re: Intégation Richfaces on JBOSS 4.2.3
                Nick Belaevski Master

                Please describe application layout for the latter case.

                • 5. Re: Intégation Richfaces on JBOSS 4.2.3
                  Morsi Jallouli Newbie

                  My application is the open source certification autority EJBCA 3.8.2.
                  I successfully installed it by using Apache Ant and JBoss 4.2.3. So, my goal now is to integrate richfaces 3.3.0 to get a rich web interface.
                  I was successfully testing a simple web project using richfaces but I can't make richfaces runnin in GUI of EJBCA.
                  Please take a look of EJBCA file, that's the link :
                  https://sourceforge.net/project/showfiles.php?group_id=39716&package_id=108797&release_id=671519

                  • 6. Re: Intégation Richfaces on JBOSS 4.2.3
                    Morsi Jallouli Newbie

                    Hello,
                    I was successfully running a web project implementing richfaces 3.3.0 and jsf 1.2 using the JSF implementation used by JBOSS.
                    What I am trying to do now is to use my own jsf implementation by adding the jsf jar jsf-api.jar and jsf-imp.jar in WEB-INF/lib of my application.
                    The WEB-INF/lib contains :
                    commons-beanutils.jar
                    commons-collections.jar
                    commons-digester.jar
                    commons-logging.jar
                    jsf-api.jar
                    jsf-imp.jar
                    richfaces-api-3.3.0.GA.jar
                    richfaces-imp-3.3.0.GA.jar
                    richfaces-ui.3.3.0.GA.jar

                    I added a file jboss-web.xml in my WEB-INF that contain :

                    <?xml version="1.0" encoding="UTF-8"?>
                    <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
                    
                    <jboss-web>
                     <class-loading java2ClassLoadingCompliance="false">
                     <loader-repository>
                     com.example:archive=unique-archive-name
                     <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
                     </loader-repository>
                     </class-loading>
                    </jboss-web>
                    


                    I disabled the listeners of JBoss to use my own jsf implementation.

                    I'm referencing to the wiki of jboss :
                    [QUOTE]
                    Remove the existing JSF implementation
                    First you need to remove the bundled JSF implementation. To do so you need to comment/remove the following from the web.xml found under jboss-4.2.0.GA\server\<config-name>\deploy\jboss-web.deployer\conf.
                    <!-- Comment/Remove this -->
                     <!-- Configures JSF for a web application if the javax.faces.webapp.FacesServlet is declared -->
                     <!-- in web.xml. -->
                     <!--
                     <listener>
                     <listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener</listener-class>
                     </listener>
                     -->
                     <!-- Comment/Remove this -->
                     <!-- Listens to all web app lifecycle events so that @PreDestroy can be called on -->
                     <!-- JSF managed beans that go out of scope. You can comment this out if you -->
                     <!-- don't use JSF or you don't use annotations on your managed beans. -->
                     <!--
                     <listener>
                     <listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>
                     </listener>
                     -->
                    

                    [/QUOTE]

                    Unfortunately, I had this exception :

                    exception
                    
                    javax.servlet.ServletException: "Servlet.init()" pour la servlet Faces Servlet a généré une exception
                     org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
                     org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                     org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                     org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                     org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                     java.lang.Thread.run(Thread.java:619)
                    
                    cause mère
                    
                    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
                     javax.faces.FactoryFinder.getFactory(FactoryFinder.java:267)
                     javax.faces.webapp.FacesServlet.init(FacesServlet.java:164)
                     org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
                     org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                     org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                     org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                     org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                     java.lang.Thread.run(Thread.java:619)
                    
                    
                    


                    Thanks for help




                    • 7. Re: Intégation Richfaces on JBOSS 4.2.3
                      Morsi Jallouli Newbie

                      That's the web.xml

                      <?xml version="1.0" encoding="UTF-8"?>
                      <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
                       version="2.4">
                      <context-param>
                      <param-name>javax.faces.CONFIG_FILES</param-name>
                      <param-value>/WEB-INF/faces-config.xml</param-value>
                      </context-param>
                      
                      <context-param>
                      <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
                      <param-value>true</param-value>
                      </context-param>
                      
                      <display-name>a4jEchoText</display-name>
                      <context-param>
                      <param-name>org.richfaces.SKIN</param-name>
                      <param-value>deepMarine</param-value>
                      </context-param>
                      <filter>
                      <display-name>RichFaces Filter</display-name>
                      <filter-name>richfaces</filter-name>
                      <filter-class>org.ajax4jsf.Filter</filter-class>
                      </filter>
                      <filter-mapping>
                      <filter-name>richfaces</filter-name>
                      <servlet-name>Faces Servlet</servlet-name>
                      <dispatcher>REQUEST</dispatcher>
                      <dispatcher>FORWARD</dispatcher>
                      <dispatcher>INCLUDE</dispatcher>
                      </filter-mapping>
                      <servlet>
                      <servlet-name>Faces Servlet</servlet-name>
                      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                      <load-on-startup>0</load-on-startup>
                      </servlet>
                      <servlet-mapping>
                      <servlet-name>Faces Servlet</servlet-name>
                      <url-pattern>*.faces</url-pattern>
                      </servlet-mapping>
                      <welcome-file-list>
                      <welcome-file>index.jsp</welcome-file>
                      </welcome-file-list>
                      </web-app>
                      


                      • 8. Re: Intégation Richfaces on JBOSS 4.2.3
                        Nick Belaevski Master

                        Does this work well if you remove RF libraries/filter mapping?

                        • 9. Re: Intégation Richfaces on JBOSS 4.2.3
                          Morsi Jallouli Newbie

                          what filter mapping you mean?
                          I removed RF librairies but I had the same problem

                          Is that what I must put in my web.xml to use my own RF librairies :

                          <context-param>
                          <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
                          <param-value>true</param-value>
                          </context-param>
                          
                          


                          • 10. Re: Intégation Richfaces on JBOSS 4.2.3
                            Nick Belaevski Master

                            According to article, yes, that's the right property. Please ask at JBoss AS forum what can be the cause.

                            • 11. Re: Intégation Richfaces on JBOSS 4.2.3
                              Ilya Shaikovsky Master

                              this param allows you to use not RF but JSF implementation bundled inside your deployment archive. If you not specify this param - conflicts with built-in myFaces will appears.

                              • 12. Re: Intégation Richfaces on JBOSS 4.2.3
                                Morsi Jallouli Newbie

                                Thanks for answers,
                                now, I want to use the JSF implementation of jboss 4.2.3 and not my one.
                                I want to integrate Richfaces 3.3.0 on open source application that implement jsf.
                                WEB-INF contains :
                                commons-beanutils.jar
                                commons-collections.jar
                                commons-digester.jar
                                commons-logging.jar
                                richfaces-api-3.3.0.GA.jar
                                richfaces-imp-3.3.0.GA.jar
                                richfaces-ui.3.3.0.GA.jar
                                tomahawk-1.1.6.jar
                                The web.xml :

                                <?xml version="1.0" encoding="UTF-8"?>
                                
                                <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
                                
                                <web-app id="web-app_1">
                                 <description><![CDATA[EJBCA Administration web]]></description>
                                <context-param>
                                <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
                                <param-value>false</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>javax.faces.DEFAULT_SUFFIX</param-name>
                                 <param-value>.jsp</param-value>
                                 </context-param>
                                <context-param>
                                <param-name>javax.faces.CONFIG_FILES</param-name>
                                <param-value>/WEB-INF/faces-config.xml</param-value>
                                </context-param>
                                
                                
                                
                                <display-name>a4jEchoText</display-name>
                                <context-param>
                                <param-name>org.richfaces.SKIN</param-name>
                                <param-value>deepMarine</param-value>
                                </context-param>
                                <filter>
                                <display-name>RichFaces Filter</display-name>
                                <filter-name>richfaces</filter-name>
                                <filter-class>org.ajax4jsf.Filter</filter-class>
                                </filter>
                                <filter-mapping>
                                <filter-name>richfaces</filter-name>
                                <servlet-name>Faces Servlet</servlet-name>
                                <dispatcher>REQUEST</dispatcher>
                                <dispatcher>FORWARD</dispatcher>
                                <dispatcher>INCLUDE</dispatcher>
                                </filter-mapping>
                                <servlet>
                                <servlet-name>Faces Servlet</servlet-name>
                                <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                                <load-on-startup>0</load-on-startup>
                                </servlet>
                                <servlet-mapping>
                                <servlet-name>Faces Servlet</servlet-name>
                                <url-pattern>*.faces</url-pattern>
                                </servlet-mapping>
                                <welcome-file-list>
                                <welcome-file>defaut.jsp</welcome-file>
                                </welcome-file-list>
                                 <context-param>
                                 <param-name>facelets.LIBRARIES</param-name>
                                 <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
                                 </context-param>
                                


                                Unfortunately, it was unsuccessfully running by causing this stacktrace :

                                )] Started in 3m:17s:978ms
                                 [java] 23:41:01,976 ERROR [[jsp]] "Servlet.service()" pour la servlet jsp a lancل une exception
                                 [java] org.apache.jasper.JasperException: /test.jsp(29,6) Impossible de charger la classe org.r
                                ichfaces.taglib.Cale
                                ndarTag
                                 [java] at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:
                                40)
                                 [java] at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
                                 [java] at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
                                 [java] at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1224)
                                 [java] at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
                                 [java] at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1657)
                                 [java] at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
                                 [java] at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1272)
                                 [java] at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
                                 [java] at org.apache.jasper.compiler.Parser.parse(Parser.java:133)
                                 [java] at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
                                 [java] at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
                                 [java] at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
                                 [java] at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
                                 [java] at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
                                 [java] at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
                                 [java] at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
                                 [java] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
                                 [java] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
                                 [java] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
                                 [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                                 [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilte
                                rChain.java:290)
                                 [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.j
                                ava:206)
                                 [java] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:
                                654)
                                 [java] at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatch
                                er.java:445)
                                 [java] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.ja
                                va:379)
                                 [java] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java
                                :292)
                                 [java] at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
                                 [java] at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.
                                java:473)
                                 [java] at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
                                 [java] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
                                
                                 [java] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                                 [java] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                                 [java] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                                 [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilte
                                rChain.java:290)
                                 [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.j
                                ava:206)
                                 [java] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96
                                )
                                 [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilte
                                rChain.java:235)
                                 [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.j
                                ava:206)
                                 [java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:23
                                0)
                                 [java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:17
                                5)
                                 [java] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociation
                                Valve.java:182)
                                 [java] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java
                                :524)
                                 [java] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                                 [java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                                 [java] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                                 [java] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionVal
                                ve.java:157)
                                 [java] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                                
                                 [java] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                                 [java] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                                 [java] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Pro
                                tocol.java:583)
                                 [java] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                                 [java] at java.lang.Thread.run(Thread.java:619)
                                 [java] 23:41:02,004 ERROR [lifecycle] JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /test.jsp
                                ) Exception thrown d
                                uring phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@118
                                59fe]
                                 [java] 23:41:02,033 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_
                                HTML' found, using d
                                efault value true
                                 [java] 23:41:02,034 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_J
                                AVASCRIPT' found, us
                                ing default value true
                                 [java] 23:41:02,034 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.READONL
                                Y_AS_DISABLED_FOR_SE
                                LECTS' found, using default value true
                                 [java] 23:41:02,034 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_
                                JAVASCRIPT' found, u
                                sing default value false
                                 [java] 23:41:02,034 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SC
                                ROLL' found, using d
                                efault value false
                                 [java] 23:41:02,034 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ADD_RES
                                OURCE_CLASS' found,
                                using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
                                 [java] 23:41:02,034 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.RESOURC
                                E_VIRTUAL_PATH' foun
                                d, using default value /faces/myFacesExtensionResource
                                 [java] 23:41:02,034 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.CHECK_E
                                XTENSIONS_FILTER' fo
                                und, using default value true
                                 [java] 23:41:02,044 INFO [MyfacesConfig] Starting up Tomahawk on the RI-JSF-Implementation.
                                 [java] 23:41:02,044 ERROR [[Faces Servlet]] "Servlet.service()" pour la servlet Faces Servlet a gلnلrل une exceptio
                                n
                                 [java] org.apache.jasper.JasperException: /test.jsp(29,6) Impossible de charger la classe org.r
                                ichfaces.taglib.Cale
                                ndarTag
                                 [java] at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:
                                40)
                                 [java] at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
                                 [java] at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
                                 [java] at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1224)
                                 [java] at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
                                 [java] at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1657)
                                 [java] at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
                                 [java] at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1272)
                                 [java] at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
                                 [java] at org.apache.jasper.compiler.Parser.parse(Parser.java:133)
                                 [java] at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
                                 [java] at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
                                 [java] at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
                                 [java] at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
                                 [java] at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
                                 [java] at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
                                 [java] at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
                                 [java] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
                                 [java] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
                                 [java] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
                                 [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                                 [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilte
                                rChain.java:290)
                                 [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.j
                                ava:206)
                                 [java] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:
                                654)
                                 [java] at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatch
                                er.java:445)
                                 [java] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.ja
                                va:379)
                                 [java] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java
                                :292)
                                 [java] at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
                                 [java] at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.
                                java:473)
                                 [java] at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
                                 [java] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
                                
                                 [java] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                                 [java] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                                 [java] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                                 [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilte
                                rChain.java:290)
                                 [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.j
                                ava:206)
                                 [java] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96
                                )
                                 [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilte
                                rChain.java:235)
                                 [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.j
                                ava:206)
                                 [java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:23
                                0)
                                 [java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:17
                                5)
                                 [java] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociation
                                Valve.java:182)
                                 [java] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java
                                :524)
                                 [java] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                                 [java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                                 [java] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                                 [java] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionVal
                                ve.java:157)
                                 [java] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                                
                                 [java] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                                 [java] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                                 [java] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Pro
                                tocol.java:583)
                                 [java] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                                 [java] at java.lang.Thread.run(Thread.java:619)
                                 [java] 23:41:02,765 ERROR [STDERR] org.apache.jasper.JasperException: /test.jsp(29,6) Impossibl
                                e de charger la clas
                                se org.richfaces.taglib.CalendarTag
                                 [java] 23:41:02,766 ERROR [STDERR] at org.apache.jasper.compiler.DefaultErrorHandler.js
                                pError(DefaultErrorH
                                andler.java:40)
                                 [java] 23:41:02,766 ERROR [STDERR] at org.apache.jasper.compiler.ErrorDispatcher.dispat
                                ch(ErrorDispatcher.j
                                ava:407)
                                 [java] 23:41:02,766 ERROR [STDERR] at org.apache.jasper.compiler.ErrorDispatcher.jspErr
                                or(ErrorDispatcher.j
                                ava:198)
                                 [java] 23:41:02,766 ERROR [STDERR] at org.apache.jasper.compiler.Parser.parseCustomTag(
                                Parser.java:1224)
                                 [java] 23:41:02,766 ERROR [STDERR] at org.apache.jasper.compiler.Parser.parseElements(P
                                arser.java:1449)
                                 [java] 23:41:02,766 ERROR [STDERR] at org.apache.jasper.compiler.Parser.parseBody(Parse
                                r.java:1657)
                                 [java] 23:41:02,766 ERROR [STDERR] at org.apache.jasper.compiler.Parser.parseOptionalBo
                                dy(Parser.java:1004)
                                
                                 [java] 23:41:02,766 ERROR [STDERR] at org.apache.jasper.compiler.Parser.parseCustomTag(
                                Parser.java:1272)
                                 [java] 23:41:02,766 ERROR [STDERR] at org.apache.jasper.compiler.Parser.parseElements(P
                                arser.java:1449)
                                 [java] 23:41:02,766 ERROR [STDERR] at org.apache.jasper.compiler.Parser.parse(Parser.ja
                                va:133)
                                 [java] 23:41:02,766 ERROR [STDERR] at org.apache.jasper.compiler.ParserController.doPar
                                se(ParserController.
                                java:216)
                                 [java] 23:41:02,766 ERROR [STDERR] at org.apache.jasper.compiler.ParserController.parse
                                (ParserController.ja
                                va:103)
                                 [java] 23:41:02,766 ERROR [STDERR] at org.apache.jasper.compiler.Compiler.generateJava(
                                Compiler.java:167)
                                 [java] 23:41:02,767 ERROR [STDERR] at org.apache.jasper.compiler.Compiler.compile(Compi
                                ler.java:306)
                                 [java] 23:41:02,768 ERROR [STDERR] at org.apache.jasper.compiler.Compiler.compile(Compi
                                ler.java:286)
                                 [java] 23:41:02,768 ERROR [STDERR] at org.apache.jasper.compiler.Compiler.compile(Compi
                                ler.java:273)
                                 [java] 23:41:02,768 ERROR [STDERR] at org.apache.jasper.JspCompilationContext.compile(J
                                spCompilationContext
                                .java:566)
                                 [java] 23:41:02,768 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.servi
                                ce(JspServletWrapper
                                .java:316)
                                 [java] 23:41:02,768 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFi
                                le(JspServlet.java:3
                                36)
                                 [java] 23:41:02,770 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspS
                                ervlet.java:265)
                                 [java] 23:41:02,770 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServle
                                t.java:803)
                                 [java] 23:41:02,770 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.i
                                nternalDoFilter(Appl
                                icationFilterChain.java:290)
                                 [java] 23:41:02,771 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.d
                                oFilter(ApplicationF
                                ilterChain.java:206)
                                 [java] 23:41:02,771 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.in
                                voke(ApplicationDisp
                                atcher.java:654)
                                 [java] 23:41:02,771 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.pr
                                ocessRequest(Applica
                                tionDispatcher.java:445)
                                 [java] 23:41:02,771 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.do
                                Forward(ApplicationD
                                ispatcher.java:379)
                                 [java] 23:41:02,771 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.fo
                                rward(ApplicationDis
                                patcher.java:292)
                                 [java] 23:41:02,771 ERROR [STDERR] at com.sun.faces.context.ExternalContextImpl.dispatc
                                h(ExternalContextImp
                                l.java:410)
                                 [java] 23:41:02,771 ERROR [STDERR] at com.sun.faces.application.ViewHandlerImpl.execute
                                PageToBuildView(View
                                HandlerImpl.java:473)
                                 [java] 23:41:02,773 ERROR [STDERR] at com.sun.faces.application.ViewHandlerImpl.renderV
                                iew(ViewHandlerImpl.
                                java:141)
                                 [java] 23:41:02,773 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execu
                                te(RenderResponsePha
                                se.java:109)
                                 [java] 23:41:02,773 ERROR [STDERR] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:
                                100)
                                 [java] 23:41:02,773 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(Life
                                cycleImpl.java:139)
                                 [java] 23:41:02,773 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServ
                                let.java:266)
                                 [java] 23:41:02,773 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.i
                                nternalDoFilter(Appl
                                icationFilterChain.java:290)
                                 [java] 23:41:02,774 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.d
                                oFilter(ApplicationF
                                ilterChain.java:206)
                                 [java] 23:41:02,774 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.do
                                Filter(ReplyHeaderFi
                                lter.java:96)
                                 [java] 23:41:02,774 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.i
                                nternalDoFilter(Appl
                                icationFilterChain.java:235)
                                 [java] 23:41:02,774 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.d
                                oFilter(ApplicationF
                                ilterChain.java:206)
                                 [java] 23:41:02,774 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.inv
                                oke(StandardWrapperV
                                alve.java:230)
                                 [java] 23:41:02,775 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.inv
                                oke(StandardContextV
                                alve.java:175)
                                 [java] 23:41:02,775 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociation
                                Valve.invoke(Securit
                                yAssociationValve.java:182)
                                 [java] 23:41:02,775 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBa
                                se.invoke(Authentica
                                torBase.java:524)
                                 [java] 23:41:02,775 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.in
                                voke(JaccContextValv
                                e.java:84)
                                 [java] 23:41:02,775 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke
                                (StandardHostValve.j
                                ava:127)
                                 [java] 23:41:02,776 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invok
                                e(ErrorReportValve.j
                                ava:102)
                                 [java] 23:41:02,776 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnection
                                Valve.invoke(CachedC
                                onnectionValve.java:157)
                                 [java] 23:41:02,776 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invo
                                ke(StandardEngineVal
                                ve.java:109)
                                 [java] 23:41:02,776 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.servi
                                ce(CoyoteAdapter.jav
                                a:262)
                                 [java] 23:41:02,776 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(
                                Http11Processor.java
                                :844)
                                 [java] 23:41:02,777 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11Con
                                nectionHandler.proce
                                ss(Http11Protocol.java:583)
                                 [java] 23:41:02,777 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run
                                (JIoEndpoint.java:44
                                6)
                                 [java] 23:41:02,777 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
                                
                                


                                Thanks for help



                                • 13. Re: Intégation Richfaces on JBOSS 4.2.3
                                  Morsi Jallouli Newbie

                                  Can I have answers please

                                  • 14. Re: Intégation Richfaces on JBOSS 4.2.3
                                    Stan Silvert Master

                                    I'm confused here. Please answer the following questions:

                                    Are you trying to bundle a JSF implementation with your WAR?

                                    If so, why?

                                    If so, which JSF implementation is in the WAR?

                                    Notes:
                                    org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL is only used if you want to bundle MyFaces core with your WAR.

                                    If you remove the JSF implementation that comes with JBoss 4.2.x then other JSF applications might not work. That might be the source of one of your stack traces, but at this point I don't know what you are trying to do.

                                    Classloader scoping probably won't work. In JBoss 4.2.x, there is no easy way to isolate the JSF implementation in a WAR from the implementation that comes with JBoss. You need to either remove the built-in implementation or use only the built-in implementation.

                                    I recommend using the built-in implementation.

                                    Stan

                                    1 2 Previous Next