8 Replies Latest reply on Apr 4, 2009 2:09 PM by Nick Belaevski

    Trying to use richfaces richfaces-ui-3.3.0.GA in jboss-5.0.1

    Kazan Kazan Newbie

      Trying to use jboss 5 0 1 with JSF 2 and richfaces 3.3, but getting huge stack trace....

      My web-app lib folder contains these jars:
      -jaxen-1.1.1.jar
      -jdom.jar (Implementation-Version: 1.1)
      -jsf-api.jar (Implementation-Version: 2.0.0-PR2)
      -jsf-impl.jar (Implementation-Version: 2.0.0-PR2)
      -jsp-api.jar (Implementation-Version: 2.0.0-PR2)
      -jstl.jar (Implementation-Version: 1.1.2)
      -mysql-connector-java-5.0.3-bin.jar
      -richfaces-api-3.3.0.GA.jar
      -richfaces-impl-3.3.0.GA.jar
      -richfaces-ui-3.3.0.GA.jar
      -servlet-api.jar (Implementation-Version: 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)

      This is my web.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="2.5"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" >
      <context-param>
      <param-name>javax.faces.CONFIG_FILES</param-name>
      <param-value>/WEB-INF/faces-config.xml</param-value>
      </context-param>

      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>0</load-on-startup>

      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.faces</url-pattern>
      </servlet-mapping>
      </web-app>

      This is my faces-config.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

      Here are portions of my stack trace when I start JBoss:
      13:35:03,468 INFO [config] Unsanitized stacktrace from failed start...
      com.sun.faces.config.ConfigurationException: Factory 'javax.faces.render.RenderKitFactory' was not configured properly.
      at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:283)
      at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:204)


      13:35:03,468 ERROR [[/cipms]] Exception sending context initialized event to listener instance of class com.sun.faces.co
      nfig.ConfigureListener
      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org/apache/commons/digester/Digester
      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:331)
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:208)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)

      13:35:03,468 ERROR [[/cipms]] Exception sending context initialized event to listener instance of class org.jboss.web.js
      f.integration.config.JBossJSFConfigureListener
      java.lang.ClassCastException: com.sun.faces.config.WebConfiguration
      at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:160)
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:154)
      at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.j
      ava:75)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)