8 Replies Latest reply on Aug 23, 2012 8:38 AM by hantsy

    Resource loading problem...

    hantsy

      When I clicke a button to invoke an Ajax event, I got the following infromation from my Jboss 7.1.1 Final console.

       

       

      22:16:30,241 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http-localhost-127.0.0.1-8080-7) JSF1064: Unable to find or serve resource, org.richfaces.staticResource/4.2.0.Final/Packed/plain/packed/packed.css.
      

       

      I explored the jar file in Eclipse, there is no such as resource. How to overcome this problem?

       

      I am using Richfaces 4.2.0.Final and using "plain" skin, I am trying to apply "Twittier Bootrape' in my project.

        • 1. Re: Resource loading problem...
          ppitonak

          Hi,

           

          could you please try your application with most recent RichFaces, i.e. 4.2.2.Final?

           

          If you are interested in Twitter Bootstrap, please have a look on our Bootstrap demo [1] and its Git repository [2].

           

          Regards,

          Palo

           

          [1] http://bootstrap-richfaces.rhcloud.com/

          [2] https://github.com/richfaces/sandbox/tree/develop/bootstrap

          • 2. Re: Resource loading problem...
            hantsy

            Thanks, I opened an eye on the bootstrap project in the sandbox, and I checked out the codes periodically. But it is still under development...so I do not want to use it in my current proejct.

             

            The Richfaces 4.2.x(after 4.2.0) introduced annother problem  I think many people have encoutered here, the keepTransient default value of a4j:outputPanel was changed to "true", which will cause exception when use a4j:outputPanel to wrap text or html ...

            • 3. Re: Resource loading problem...
              healeyb

              Can you post the first few lines of your web.xml please - Hantsy, I wasn't sure what version (of richfaces) you were

              using when this last worked.

               

              Regards,

              Brendan.

              • 4. Re: Resource loading problem...
                hantsy

                I am using 4.2.0.Final now.

                 

                 

                <!-- Richfaces config -->
                
                <context-param>
                
                
                <param-name>org.richfaces.enableControlSkinning</param-name>
                
                
                <param-value>false</param-value>
                
                </context-param>
                
                <context-param>
                
                
                <param-name>org.richfaces.skin</param-name>
                
                
                <param-value>plain</param-value>
                
                </context-param>
                
                
                
                <context-param>
                
                
                <param-name>org.richfaces.resourceOptimization.enabled</param-name>
                
                
                <param-value>true</param-value>
                
                </context-param>
                
                

                 

                Hantsy

                • 5. Re: Resource loading problem...
                  healeyb

                  Ah no, I meant the first few lines literally, meaning the web-app...

                  • 6. Re: Resource loading problem...
                    hantsy
                    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
                    <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        version="3.0"
                        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
                    
                    • 7. Re: Resource loading problem...
                      healeyb

                      Thanks for that, I'd thought that perhaps if you were using a pre v3 servlet container the richfaces resources servlet would not

                      be auto-registering but you are, so that theory is dead in the water.

                      • 8. Re: Resource loading problem...
                        hantsy

                        I am using JBoss 7.1.1.Final...