7 Replies Latest reply on Nov 28, 2008 12:45 PM by nbelaevski

    upgrade to richfaces 3.2.2 issue

      hi,
      i have issue with upgrading to 3.2.2.GA version. previously i had used 3.2.1.GA.
      let me tell my upgrade process.;
      i change richfaces-api, impl and ui 3.2.1.GA libs with 3.2.2.GA ones.
      also I changed jsf-api-1.2_04-p02.jar and impl jar with jsf-api-1.2_09.jar and impl jars.

      after that i run my projects and get "RichFaces is not defined" message in the browser. all richfaces components are not visible now.

      please help me resolving this issue.

      thanks and regards.
      Mustafa

        • 1. Re: upgrade to richfaces 3.2.2 issue
          ilya_shaikovsky

          please try to clean the caches carefully.

          Also I could advice you to perform update at list to 3.2.2SR1 which has one more criticall fixed. Or even 3.3.0Beta1 which released a few days ago.

          • 2. Re: upgrade to richfaces 3.2.2 issue

            thank you for your fast reply ilya. i really appreciate it.

            i try your suggestion. clean carefully the caches one more time and try again but it doesnt work. as you said i changed the richfaces libs with 3.2.2.SR1 but unfortunately doesnt work.

            any other suggestion. i am really confused. i dont find any document about upgrade.

            • 3. Re: upgrade to richfaces 3.2.2 issue
              nbelaevski

              Hi Mustafa,

              Please post your web.xml here.

              • 4. Re: upgrade to richfaces 3.2.2 issue

                <?xml version="1.0" encoding="UTF-8"?>
                <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
                xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
                id="WebApp_ID" version="2.5">
                <display-name>tkwaive</display-name>

                <!-- JSF implementation -->
                <context-param>
                <param-name>org.ajax4jsf.SKIN</param-name>
                <param-value>#{skinBean.skin}</param-value>
                </context-param>

                <servlet-name>FacesServlet</servlet-name>
                <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                <load-on-startup>1</load-on-startup>

                <servlet-mapping>
                <servlet-name>FacesServlet</servlet-name>
                <url-pattern>*.jsf</url-pattern>
                <url-pattern>/faces/*</url-pattern>
                </servlet-mapping>

                <!-- Richfaces component -->
                <context-param>
                <param-name>org.richfaces.SKIN</param-name>
                <param-value>blueSky</param-value>
                </context-param>

                <display-name>RichFacesFilter</display-name>
                <filter-name>richfaces</filter-name>
                <filter-class>org.ajax4jsf.Filter</filter-class>

                <filter-mapping>
                <filter-name>richfaces</filter-name>
                <servlet-name>FacesServlet</servlet-name>
                REQUEST
                FORWARD
                INCLUDE
                </filter-mapping>

                <!-- Session listeners -->

                <listener-class>com.thy.tkwaive.session.MySessionListener
                </listener-class>


                <filter-name>SessionTimeoutFilter</filter-name>
                <filter-class> com.thy.tkwaive.filter.SessionTimeoutFilter
                </filter-class>

                <filter-mapping>
                <filter-name>SessionTimeoutFilter</filter-name>
                <url-pattern>/*</url-pattern>
                </filter-mapping>

                <!-- JSF redirect filter for .jsp pages -->

                <filter-name>faces-redirect-filter</filter-name>
                <filter-class> com.thy.tkwaive.filter.RedirectFilter </filter-class>

                <filter-mapping>
                <filter-name>faces-redirect-filter</filter-name>
                <url-pattern>*.jsp</url-pattern>
                </filter-mapping>

                <!-- Security Filter -->

                <filter-name>mysecurityfilter</filter-name>
                <filter-class>com.thy.tkwaive.filter.MySecurityFilter</filter-class>
                <init-param>
                <param-name>firstuse</param-name>
                <param-value>yes</param-value>
                </init-param>

                <filter-mapping>
                <filter-name>mysecurityfilter</filter-name>
                <url-pattern>/pages/*</url-pattern>
                REQUEST
                FORWARD
                </filter-mapping>

                <!-- Session timeout -->
                <session-config>
                <session-timeout>10</session-timeout>
                </session-config>

                <!-- default welcome page list -->
                <welcome-file-list>
                <welcome-file>index.html</welcome-file>
                <welcome-file>index.htm</welcome-file>
                <welcome-file>index.jsp</welcome-file>
                <welcome-file>default.html</welcome-file>
                <welcome-file>default.htm</welcome-file>
                <welcome-file>default.jsp</welcome-file>
                </welcome-file-list>
                </web-app>

                • 5. Re: upgrade to richfaces 3.2.2 issue

                  any idea?

                  • 6. Re: upgrade to richfaces 3.2.2 issue

                    I havent solved the problem yet. does anyone has any idea?

                    • 7. Re: upgrade to richfaces 3.2.2 issue
                      nbelaevski

                      You have two <url-pattern>*.jsf</url-pattern>
                      <url-pattern>/faces/*</url-pattern> elements in servlet-mapping. This is not valid according to web-app.xsd. Change it to two <servlet-mapping> elements and this should start working