3 Replies Latest reply on Jul 27, 2010 7:10 PM by Nick Belaevski

    RichFaces 4 Alpha 2 Deploy Error on Tomcat V6.0

    Christoph Küster Newbie

      hello,

       

      we have problems to start an richfaces 4.0 application on the tomcat v6.0 server. The jsf 2.0 project used follwing librrays

      richfaces-commons-api-4.0.0-ALPHA2.jar
      richfaces-core-api-4.0.0-ALPHA2.jar
      richfaces-core-impl-4.0.0-ALPHA2.jar
      richfaces-components-api-4.0.0-ALPHA2.jar
      richfaces-components-impl-4.0.0-ALPHA2.jar
      richfaces-components-ui-4.0.0-ALPHA2.jar
      slf4j-api-1.6.0.jar
      slf4j-log4j12-1.6.0.jar
      log4j-1.2.16.jar

       

      The deploy-error message are:

       

      log4j:WARN No appenders could be found for logger (org.richfaces.log.Renderkit).
      log4j:WARN Please initialize the log4j system properly.
      log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

      and

      java.lang.ClassNotFoundException: org.w3c.css.sac.ErrorHandler

       


      Have anybody a idea????

        • 2. Re: RichFaces 4 Alpha 2 Deploy Error on Tomcat V6.0
          Christoph Küster Newbie

          Hi,

           

          we habe the same problem with the version 4.0.0.M1

           

              1.1)  richfaces-commons-api-4.0.0.20100715-M1.jar
              1.2)  richfaces-core-api-4.0.0.20100715-M1.jar
              1.3)  richfaces-core-impl-4.0.0.20100715-M1.jar
              1.4)  richfaces-components-api-4.0.0.20100715-M1.jar
              1.5)  richfaces-components-impl-4.0.0.20100715-M1.jar
              1.6)  richfaces-components-ui-4.0.0.20100715-M1.jar
              1.7)  slf4j-api
              1.8)  slf4j-log4j12

           

           

          The error-message are:

           

          Failed to instantiate SLF4J LoggerFactory
          Reported exception:
          java.lang.NoClassDefFoundError: org/apache/log4j/Level

          • 3. Re: RichFaces 4 Alpha 2 Deploy Error on Tomcat V6.0
            Nick Belaevski Master

            Here is a list of richfaces-showacse application dependencies for Tomcat 6:

             

            com.google.guava:guava:jar:r05
            com.sun.faces:jsf-api:jar:2.0.2
            com.sun.faces:jsf-impl:jar:2.0.2
            log4j:log4j:jar:1.2.14
            net.sf.ehcache:ehcache:jar:1.6.0
            net.sourceforge.cssparser:cssparser:jar:0.9.5
            org.richfaces.commons:richfaces-commons-api:jar:4.0.0-SNAPSHOT
            org.richfaces.core:richfaces-core-api:jar:4.0.0-SNAPSHOT
            org.richfaces.core:richfaces-core-impl:jar:4.0.0-SNAPSHOT
            org.richfaces.ui:richfaces-components-api:jar:4.0.0-SNAPSHOT
            org.richfaces.ui:richfaces-components-impl:jar:4.0.0-SNAPSHOT
            org.richfaces.ui:richfaces-components-ui:jar:4.0.0-SNAPSHOT
            org.slf4j:slf4j-api:jar:1.5.8
            org.slf4j:slf4j-log4j12:jar:1.5.8
            org.w3c.css:sac:jar:1.3

             

            EhCache is optional and can be replaced with any of supported caches or even removed. Any other provider & implementation of logger supported by SLF4J can be used.

            If you use Maven I recommend to check pom.xml file of richfaces-showcase, if not - you can extract all necessary files from richfaces-showcase.war file.