9 Replies Latest reply on Apr 9, 2010 10:35 AM by krishna pokala

    basic_classes.xcss error on upgrade to richfaces 3.3.3CR1

    krishna pokala Novice

      I have just upgarded from richfaces 3.22 to 3.3.1 CR1 and page loads up with the error.I am using jsf 1.2

       

      org.ajax4jsf.resource.ResourceNotFoundException: Static resource not found for path /org/richfaces/renderkit/html/css/basic_classes.xcss
      org.ajax4jsf.resource.ResourceBuilderImpl.createStaticResource(ResourceBuilderImpl.java:463)
      org.ajax4jsf.resource.ResourceBuilderImpl.createResource(ResourceBuilderImpl.java:265)
      org.ajax4jsf.context.ViewResources.encodeSkinningResources(ViewResources.java:294)
      org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:510)
      org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:193)
      com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
      com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
      org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
      org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
      org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

       

      I have cleared the cache on jboss. I am surprised no one had this problem as I have upgarded from a clean scratch but cant avoid this error.

        • 2. Re: basic_classes.xcss error on upgrade to richfaces 3.3.3CR1
          krishna pokala Novice

          thanks Ilya for prompt response.My 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"

           

          version="2.4"

           

          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"

           

          id="WebApp_ID">

           

           

          <display-name>MyApp</display-name>

           

          <description>MyApp</description>

           

           

          <!-- Use Documents Saved as *.xhtml -->

           

          <context-param>

           

          <param-name>javax.faces.DEFAULT_SUFFIX</param-name>

           

          <param-value>.xhtml</param-value>

           

          </context-param>

           

          <context-param>

           

          <param-name>contextConfigLocation</param-name>

           

          <param-value>/WEB-INF/config/web-application-config.xml</param-value>

           

          </context-param>

           

           

          <context-param>

           

          <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>

           

          <param-value>false</param-value>

           

          </context-param>

           

          <context-param>

           

          <param-name>org.apache.myfaces.DISABLE_TOMAHAWK_FACES_CONTEXT_WRAPPER</param-name>

           

          <param-value>true</param-value>

           

          </context-param>

           

           

          <context-param>

           

          <param-name>com.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP</param-name>

           

          <param-value>true</param-value>

           

          </context-param>

           

           

          <context-param>

           

          <param-name>facelets.LIBRARIES</param-name>

           

          <param-value>/WEB-INF/CustomComponentTags.tld</param-value>

           

          </context-param>

           

           

          <context-param>

           

          <param-name>org.richfaces.SKIN</param-name>

           

          <param-value>DEFAULT</param-value>

           

          </context-param>

           

          <context-param>

           

          <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>

           

          <param-value>com.sun.facelets.FaceletViewHandler</param-value>

           

          </context-param>

           

          <context-param>

           

          <param-name>org.ajax4jsf.RESOURCE_URI_PREFIX</param-name>

           

          <param-value>a4j_resource/</param-value>

           

          </context-param>

           

           

           

           

          <security-constraint>

           

          <web-resource-collection>

           

          <web-resource-name>APPWebShop</web-resource-name>

           

          <description>

           

          </description>

           

          <url-pattern>/images/*</url-pattern>

           

          <url-pattern>/a4j_resource/*</url-pattern>

           

          </web-resource-collection>

           

          </security-constraint>

           

          <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>INCLUDE</dispatcher>

           

          </filter-mapping>

           

           

          <listener>

           

          <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

           

          </listener>

           

          <listener>

           

          <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>

           

          </listener>

           

           

          <!-- 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>

           

          <servlet-name>InitialRequestServlet</servlet-name>

           

          <servlet-class>uk.gov.wales.rpd.servlet.InitialRequestServlet</servlet-class>

           

          <load-on-startup>1</load-on-startup>

           

          </servlet>

           

           

          <!-- Faces Servlet Mapping -->

           

          <servlet-mapping>

           

          <servlet-name>Faces Servlet</servlet-name>

           

          <url-pattern>*.jsp</url-pattern>

           

          </servlet-mapping>

           

           

          <servlet-mapping>

           

          <servlet-name>InitialRequestServlet</servlet-name>

           

          <url-pattern>/InitialRequestServlet</url-pattern>

           

          </servlet-mapping>

           

           

          <resource-ref id="ResourceRef_1268314960543">

           

          <description></description>

           

          <res-ref-name>jdbc</res-ref-name>

           

          <res-type>javax.sql.DataSource</res-type>

           

          <res-auth>Container</res-auth>

           

          <res-sharing-scope>Shareable</res-sharing-scope>

           

          </resource-ref>

           

           

          <!-- Start - Needed to Use Tabbed Panel -->

           

          <!-- <context-param> -->

           

          <!-- <param-name>facelets.LIBRARIES</param-name> -->

           

          <!-- <param-value>/WEB-INF/tomahawk.taglib.xml</param-value> -->

           

          <!-- </context-param> -->

           

          <filter>

           

          <filter-name>extensionsFilter</filter-name>

           

          <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>

           

          <init-param>

           

          <param-name>uploadMaxFileSize</param-name>

           

          <param-value>100m</param-value>

           

          </init-param>

           

          <init-param>

           

          <param-name>uploadThresholdSize</param-name>

           

          <param-value>100k</param-value>

           

          </init-param>

           

          </filter>

           

          <filter-mapping>

           

          <filter-name>extensionsFilter</filter-name>

           

          <servlet-name>Faces Servlet</servlet-name>

           

          </filter-mapping>

           

          <filter-mapping>

           

          <filter-name>extensionsFilter</filter-name>

           

          <url-pattern>/faces/*</url-pattern>

           

          </filter-mapping>

           

           

          <error-page>

           

          <exception-type>java.lang.RuntimeException</exception-type>

           

          <location>/common/runtimeExceptionPage.jsp</location>

           

          </error-page>

          </

          web-app>

          • 3. Re: basic_classes.xcss error on upgrade to richfaces 3.3.3CR1
            krishna pokala Novice

            Any help/suggestion on this Ilya?? we are currently using 3.22 but want to go fopr 3.3.2 

            • 4. Re: basic_classes.xcss error on upgrade to richfaces 3.3.3CR1
              Ilya Shaikovsky Master

              thanks for update - we will look and update you. Quick question - do you using ibm JSF implementation? We does not support it officially and didn't test such compatibility anyhow.

              • 5. Re: basic_classes.xcss error on upgrade to richfaces 3.3.3CR1
                Nick Belaevski Master

                Try this please:

                 

                 

                <context-param>
                
                <param-name>org.ajax4jsf.RESOURCE_URI_PREFIX</param-name>
                
                <param-value>a4j_resource</param-value>
                
                </context-param>
                

                 

                What JBoss version is used?

                • 6. Re: basic_classes.xcss error on upgrade to richfaces 3.3.3CR1
                  krishna pokala Novice

                  no we are not using ibm jsf implementation

                  • 7. Re: basic_classes.xcss error on upgrade to richfaces 3.3.3CR1
                    krishna pokala Novice

                    Nick, if you check my web.xml, i have already put that tag.

                     

                    we are using jboss 4.2

                    • 8. Re: basic_classes.xcss error on upgrade to richfaces 3.3.3CR1
                      Nick Belaevski Master

                      There's a slight change in parameter value. Please try that.

                      • 9. Re: basic_classes.xcss error on upgrade to richfaces 3.3.3CR1
                        krishna pokala Novice

                        perfect Nick.that resolved it.Dont know how i put that extra forward slash. Thanks a lot