7 Replies Latest reply on Sep 22, 2008 9:33 AM by wefoowefowergo osdergkewrgk

    Troubles getting RichFaces to work.

    Thomas Kessler Newbie

      I'm trying to deploy a simple webapp with RichFaces support. I'm using NetBeans to make a JSF Project. I added the 3 newest RichFaces Jars to my library and dropped in the configuration code into my web.xml. When I deploy the .war file to JBoss I get this:

      12:39:33,257 ERROR [STDERR] javax.faces.FacesException: org.ajax4jsf.renderkit.ChameleonRenderKitFactory
      12:39:33,258 ERROR [STDERR] at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:556)
      12:39:33,258 ERROR [STDERR] at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:448)
      12:39:33,258 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249)
      12:39:33,258 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1036)
      12:39:33,258 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:493)
      12:39:33,258 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
      12:39:33,259 ERROR [STDERR] at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)...
      ...
      12:39:33,277 ERROR [[/Test]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
      javax.faces.FacesException: org.ajax4jsf.renderkit.ChameleonRenderKitFactory
       at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:556)
       at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:448)...
      ...
      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:494)
       at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:549)
       ... 95 more
      Caused by: java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
       at org.ajax4jsf.resource.ResourceBuilderImpl.registerConfig(ResourceBuilderImpl.java:159)
       at org.ajax4jsf.resource.ResourceBuilderImpl.registerResources(ResourceBuilderImpl.java:143)
       at org.ajax4jsf.resource.ResourceBuilderImpl.init(ResourceBuilderImpl.java:214)
       at org.ajax4jsf.renderkit.ChameleonRenderKitFactory.<init>(ChameleonRenderKitFactory.java:62)
       ... 100 more
      12:39:33,279 ERROR [StandardContext] Error listenerStart
      12:39:33,279 ERROR [StandardContext] Context [/Test] startup failed due to previous errors
      12:39:33,365 WARN [ServiceController] Problem starting service jboss.web.deployment:war=Test.war,id=-2134892965
      org.jboss.deployment.DeploymentException: URL file:/usr/local/jboss/server/default/tmp/deploy/tmp64226Test-exp.war/ deployment failed
       at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:379)
       at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
       at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
       at org.jboss.web.WebModule.startModule(WebModule.java:83)
       at org.jboss.web.WebModule.startService(WebModule.java:61)
      


      I get similar errors also on GlassFishV2. Anybody know what's going on?

      TK