1 2 Previous Next 22 Replies Latest reply on May 6, 2009 6:43 AM by nbelaevski Go to original post
      • 15. Re: Intégation Richfaces on JBOSS 4.2.3

        Infact, I'm using the built-in implementation that comes with JBoss because as you say that if we remove the JSF implementation that comes with JBoss 4.2.x then other JSF applications might not work. In my case, i have other JSF applications.

        I was never using the MyFaces core. As I know, there is two kind of jsf implementation : Sun RI and myfaces.
        I don't know the différence between those while using richfaces .
        Is richfaces can be successfully runned in the MyFaces core?

        What are the possible sources of that exception : Unable to load the class org.richfaces.taglib.calendar as mentioned above?

        Any help is appreciated




        • 16. Re: Intégation Richfaces on JBOSS 4.2.3

          Migrating to Jboss 5.0.0 can it resolve my problem??

          • 17. Re: Intégation Richfaces on JBOSS 4.2.3
            nbelaevski

            I've downloaded your application, added richfaces-api.jar into EAR/lib, richfaces-impl and richfaces-ui into WEB-INF/lib, created calendar.jsp page - works ok using JBoss 4.2.3.

            • 18. Re: Intégation Richfaces on JBOSS 4.2.3
              ssilvert

              So is your problem solved now?

              AS 4.2 and AS 5.0 are almost identical in terms of JSF integration.

              Stan

              • 19. Re: Intégation Richfaces on JBOSS 4.2.3

                 

                "nbelaevski" wrote:
                I've downloaded your application, added richfaces-api.jar into EAR/lib, richfaces-impl and richfaces-ui into WEB-INF/lib, created calendar.jsp page - works ok using JBoss 4.2.3.


                Thank you nbelaevski for what you did.
                Infortunately, I've done the same, but the problem persist. Infact, I added richfaces librairies after deploiement of ejbca.ear, it means into the tmp file.
                Can you describe me please step by step how it does worked ok for you?
                Did you add the richfaces librairies and its configuration in web.xml before or after creating the EAR file.

                Thanks for help

                • 20. Re: Intégation Richfaces on JBOSS 4.2.3

                  Finally, it was successfully running after two wasted weeks thanks to your help.
                  The problem was in the Web.xml
                  that's the right configuration :

                  <?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">
                  
                  
                   <description><![CDATA[EJBCA Administration web]]></description>
                  <description><![CDATA[EJBCA Administration web]]></description>
                  
                  <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>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>facelets.LIBRARIES</param-name>
                   <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
                   <description><![CDATA[apache myfaces tomahawk components taglib]]></description>
                   </context-param>
                  


                  Can you describe me why you put richfaces-api.jar into EAR/lib and not in WEB-INF/lib?.

                  All my regards



                  • 21. Re: Intégation Richfaces on JBOSS 4.2.3

                    Finally, it was successfully running after two wasted weeks thanks to your help.
                    The problem was in the Web.xml
                    that's the right configuration :

                    <?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">
                    
                    
                     <description><![CDATA[EJBCA Administration web]]></description>
                    <description><![CDATA[EJBCA Administration web]]></description>
                    
                    <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>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>facelets.LIBRARIES</param-name>
                     <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
                     <description><![CDATA[apache myfaces tomahawk components taglib]]></description>
                     </context-param>
                    


                    Can you describe me why you put richfaces-api.jar into EAR/lib and not in WEB-INF/lib?.

                    All my regards



                    • 22. Re: Intégation Richfaces on JBOSS 4.2.3
                      nbelaevski

                      In order for EJB modules to be able to work with RF data models, events and listeners.

                      1 2 Previous Next