2 Replies Latest reply on Mar 10, 2012 1:56 AM by iabughosh

    Multiple RichFaces 4.2 issues...

    Kalyan Vishnubhatla Newbie

      Hi,

       

      I'm new to RichFaces, and would appreciate any help as I have been stuck on this for sometime now. When I setup eclipse with tomcat 7 using the below jars:

       

       

      cssparser-0.9.6-javadoc.jar

      guava-11.0.2.jar

      richfaces-components-api-4.2.0.Final.jar

      richfaces-components-ui-4.2.0.Final.jar

      richfaces-core-api-4.2.0.Final.jar

      richfaces-core-impl-4.2.0.Final.jar

      sac.jar

       

      I get the following error:

       

      java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet

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

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

                at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:525)

                at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:507)

                at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:124)

                at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1136)

                at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)

                at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015)

                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

                at java.util.concurrent.FutureTask.run(FutureTask.java:138)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

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

       

       

      The problem is I can see the page, but none of the JSF tags are rendered. Only the plain HTML tags. Online it tells me that I should include the following jars for the above exception:

       

      jsf-api.jar

      jsf-impl.jar

      jsf-tlds.jar

      jstl.jar

       

       

      When I do that, I get even more errors:

       

      java.lang.NoClassDefFoundError: javax/faces/FacesWrapper

                at java.lang.ClassLoader.defineClass1(Native Method)

                at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

                at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

                at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2836)

                at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1160)

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

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

                at java.lang.Class.forName0(Native Method)

                at java.lang.Class.forName(Class.java:247)

                at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:514)

                at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:405)

                at javax.faces.FactoryFinder.access$400(FactoryFinder.java:135)

                at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:717)

                at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239)

                at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:186)

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

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

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

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

                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

                at java.util.concurrent.FutureTask.run(FutureTask.java:138)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

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

      Caused by: java.lang.ClassNotFoundException: javax.faces.FacesWrapper

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

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

       

       

      I have a feeling there're more jars i need? Please can somebody help me with this?