9 Replies Latest reply on Mar 22, 2011 5:43 AM by Ilya Sorokoumov

    where is the lib folder in version 4?

    Yorgos Tryfon Newbie

      Hello, I am new in RichFaces, and I am trying to make version 4 work on my JSF 2 project.

      I see that there is no /lib folder like the previous version,

      what .jar files should I include in my project?

       

      Thank you for your help

      cheers

        • 1. Re: where is the lib folder in version 4?
          Ilya Sorokoumov Master

          You can download RF 4.0 M4 from http://www.jboss.org/richfaces/download/milestones.html

          Or you can get the latest(highly builds) libs from richfaces-showcase [snapshot build].

          JARs:

           

          artifacts/ui:

           

          25.12.2010  00:31            77я293 richfaces-components-api-4.0.0-SNAPSHOT.jar
          25.12.2010  00:33         1я425я370 richfaces-components-ui-4.0.0-SNAPSHOT.jar
          25.12.2010  00:14           122я405 richfaces-core-api-4.0.0-SNAPSHOT.jar
          25.12.2010  00:16           433я783 richfaces-core-impl-4.0.0-SNAPSHOT.jar

          richfaces-components-api-4.0.0-XXXXXX.jar

          richfaces-components-ui-4.0.0-XXXXXX.jar

           

          artifacts/framework:

           

          richfaces-core-api-4.0.0-XXXXXX.jar

          richfaces-core-impl-4.0.0-XXXXXX.jar

          • 2. Re: where is the lib folder in version 4?
            Nick Belaevski Master

            Hi,

             

            In readme-ui.txt:

             

            1)1) Put RichFaces libraries and its dependencies in your application libraries folder:
            1.1)  richfaces-core-api.jar
            1.2)  richfaces-core-impl.jar
            1.3)  richfaces-components-api.jar
            1.4)  richfaces-components-ui.jar
            1.5)  sac-1.3, cssparser-0.9.5 - required for components CSS work
            1.6)  google-guava-r06 - core runtime dependency.
            1.7)  annotations.jar from org.richfaces.cdk
                - It's optional and only needs to be added if RichFaces components will be
                  created/accessed dynamically in your apps actions/listeners.  Put RichFaces libraries and its dependencies in your application libraries folder:
            1.1)  richfaces-core-api.jar
            1.2)  richfaces-core-impl.jar
            1.3)  richfaces-components-api.jar
            1.4)  richfaces-components-ui.jar
            1.5)  sac-1.3, cssparser-0.9.5 - required for components CSS work
            1.6)  google-guava-r06 - core runtime dependency.
            1.7)  annotations.jar from org.richfaces.cdk
               - It's optional and only needs to be added if RichFaces components will be
                 created/accessed dynamically in your apps actions/listeners.

            1) Put RichFaces libraries and its dependencies in your application libraries folder:

            1.1)  richfaces-core-api.jar

            1.2)  richfaces-core-impl.jar

            1.3)  richfaces-components-api.jar

            1.4)  richfaces-components-ui.jar

            1.5)  sac-1.3, cssparser-0.9.5 - required for components CSS work

            1.6)  google-guava-r06 - core runtime dependency.

            1.7)  annotations.jar from org.richfaces.cdk

                - It's optional and only needs to be added if RichFaces components will be

                  created/accessed dynamically in your apps actions/listeners.

            • 3. Re: where is the lib folder in version 4?
              Yorgos Tryfon Newbie

              Thank you for your help, but I thing I still have problem

              I added

              richfaces-core-api.jar

              richfaces-core-impl.jar

              richfaces-components-api.jar

              richfaces-components-ui.jar

              in my project

               

              and I removed the entries from my web.xml

              (as I reed from readme.txt)

              2) As opposed to the previous 3.x.y versions of RichFaces, no special configuration steps are necessary. 
              You don't need to modify web.xml or faces-config.xml

               

               

              I don't include <%@taglib ,,, and don't call RichFaces functionallity yet (for simplicity),

              and while my netbeans "clean and build" replies with "BUILD SUCCESSFUL (total time: 0 seconds)"

              When I try to run my project I have the result:

              FAIL - Deployed application at context path /rf4 but context failed to start
              C:\develop\test\jsf\rf4\nbproject\build-impl.xml:690: The module has not been deployed.

              FAIL - Deployed application at context path /rf4 but context failed to start

              C:\develop\test\jsf\rf4\nbproject\build-impl.xml:690: The module has not been deployed.

               

              when I remove the .jar files and build again my project, the run is working properly.

              I suppose I havn't configured RichFaces 4 properly, but I' couldn't find some documentation somewhere, could you please point to me where I should look for?

               

              Thank you again

              Yorgos Tryfon

              Cheers

              • 4. Re: where is the lib folder in version 4?
                Ilya Sorokoumov Master

                Please post the full error stack trace(open server console and find the error "FAIL - Deployed application at context path /rf4 but context failed to start" and then find the reason).

                • 5. Re: where is the lib folder in version 4?
                  Yorgos Tryfon Newbie

                  My full error stack trace from "Apache Tomcat 6.0.26 log" is...

                   

                  29 Δεκ 2010 11:09:43 πμ org.apache.catalina.core.StandardContext listenerStart
                  SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
                  com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.google.common.base.Function
                          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:354)
                          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)
                          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
                          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
                          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
                          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
                          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
                          at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
                          at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:521)
                          at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1359)
                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                          at java.lang.reflect.Method.invoke(Method.java:597)
                          at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
                          at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
                          at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
                          at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1500)
                          at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:849)
                          at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:351)
                          at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
                          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                          at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:199)
                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
                          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
                          at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
                          at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
                          at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
                          at java.lang.Thread.run(Thread.java:619)
                  Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
                          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)
                          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
                          at org.richfaces.resource.ResourceHandlerImpl.<init>(ResourceHandlerImpl.java:67)
                          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                          at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
                          at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:265)
                          at com.sun.faces.config.processor.ApplicationConfigProcessor.setResourceHandler(ApplicationConfigProcessor.java:752)
                          at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:310)
                          at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
                          at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116)
                          at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
                          at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:223)
                          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:335)
                          ... 37 more

                  29 Δεκ 2010 11:09:43 πμ org.apache.catalina.core.StandardContext listenerStart

                  SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener

                  com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.google.common.base.Function

                          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:354)

                          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)

                          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)

                          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)

                          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

                          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

                          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)

                          at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)

                          at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:521)

                          at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1359)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                          at java.lang.reflect.Method.invoke(Method.java:597)

                          at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)

                          at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)

                          at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)

                          at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1500)

                          at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:849)

                          at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:351)

                          at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

                          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                          at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:199)

                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

                          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)

                          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

                          at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)

                          at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)

                          at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)

                          at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function

                          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)

                          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)

                          at org.richfaces.resource.ResourceHandlerImpl.<init>(ResourceHandlerImpl.java:67)

                          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                          at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                          at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:265)

                          at com.sun.faces.config.processor.ApplicationConfigProcessor.setResourceHandler(ApplicationConfigProcessor.java:752)

                          at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:310)

                          at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)

                          at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116)

                          at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)

                          at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:223)

                          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:335)

                          ... 37 more

                  .....

                   

                   

                   

                   

                  and the Apache Tomcat 6.0.26 output window displays...

                   

                  INFO: Unsanitized stacktrace from failed start...

                  com.sun.faces.config.ConfigurationException:

                    Source Document: jar:file:/C:/develop/test/jsf/rf4/build/web/WEB-INF/lib/richfaces-core-impl-4.0.0.20101110-M4.jar!/META-INF/resource-handler.faces-config.xml

                    Cause: Unable to create a new instance of 'org.richfaces.resource.ResourceHandlerImpl': java.lang.reflect.InvocationTargetException

                          at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:295)

                          at com.sun.faces.config.processor.ApplicationConfigProcessor.setResourceHandler(ApplicationConfigProcessor.java:752)

                          at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:310)

                          at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)

                          at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116)

                          at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)

                          at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:223)

                          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:335)

                          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)

                          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)

                          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)

                          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

                          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

                          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)

                          at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)

                          at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)

                          at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)

                          at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)

                          at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)

                          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

                          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

                          at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)

                          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

                          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

                          at org.apache.catalina.core.StandardService.start(StandardService.java:519)

                          at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

                          at org.apache.catalina.startup.Catalina.start(Catalina.java:581)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                          at java.lang.reflect.Method.invoke(Method.java:597)

                          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

                          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

                  Caused by: java.lang.reflect.InvocationTargetException

                          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                          at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                          at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:265)

                          ... 32 more

                  Caused by: java.lang.NoClassDefFoundError: com/google/common/base/Function

                          at org.richfaces.resource.ResourceHandlerImpl.<init>(ResourceHandlerImpl.java:67)

                          ... 37 more

                  Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function

                          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)

                          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)

                          ... 38 more

                  .....

                   

                   

                  If you want I could copy the full output (it is really long, so I just copied the first parts here)

                   

                   

                  I am afraid that I can't follow this information.

                  I suppose that something is missing and I can't understand what

                   

                  Thank you again

                  Yorgos Tryfon

                  • 6. Re: where is the lib folder in version 4?
                    Ilya Sorokoumov Master

                    I guess that you missed these libraries:

                    1.5)  sac-1.3, cssparser-0.9.5 - required for components CSS work

                    1.6)  google-guava-r06 - core runtime dependency.

                    Simply add them into classpath(I mean into /lib directory of your war file).

                    • 7. Re: where is the lib folder in version 4?
                      Yorgos Tryfon Newbie

                      I added these .jar files and the project is running now!

                      Thank you

                      • 8. where is the lib folder in version 4?
                        Faisal Basra Newbie

                        Hi Ilya ,


                        From Where we can find/download RF 4 dependencies? I have downloaded the binary distribution and did not find the dependencies inside RF4 zip file.

                         

                        Thanks

                        • 9. Re: where is the lib folder in version 4?
                          Ilya Sorokoumov Master

                          RichFaces - Ajax enabled JSF 2.0 component library

                          =========================================================

                          Version 4.0.0.CR1

                           

                           

                          This software is distributed under the terms of the FSF Lesser Gnu Public License (see lgpl.txt).

                           

                           

                          Getting up and running quickly

                          -------------------------------

                           

                           

                          1) Put RichFaces libraries and its dependencies in your application libraries folder:

                                    1.1)  richfaces-core-api.jar

                                    1.2)  richfaces-core-impl.jar

                                    1.3)  richfaces-components-api.jar

                                    1.4)  richfaces-components-ui.jar

                                    1.5)  sac-1.3, cssparser-0.9.5 - required for components CSS work

                                    1.6)  google-guava-r08 - core runtime dependency.

                                    1.7)  annotations.jar from org.richfaces.cdk

                                        - It's optional and only needs to be added if RichFaces components will be

                                          created/accessed dynamically in your apps actions/listeners.

                                    1.8)  validation-api.jar and any implementation like hibernate-validators.jar

                                        - It's optional and should be added if you using Client or Graph Validation. Should be added only if it's not provided by server(Java EE 6 servers) 

                           

                           

                          For optimal performance it's recommended to add one of these caching frameworks to application classpath: EhCache, JBoss Cache, OsCache.

                           

                          P.S. use google to find the repositories for these jars