2 Replies Latest reply on Feb 6, 2003 4:30 PM by raja05

    jboss-3.0.3_tomcat-4.1.12 startup throws ClassNotFoundExcept

    weiweirenhong

      I run the run.bat
      output below:
      .
      JBoss Bootstrap Environment
      .
      JBOSS_HOME: D:\jboss-3.0.3_tomcat-4.1.12\bin\\..
      .
      JAVA: D:\j2sdk1.4.0\bin\java
      .
      JAVA_OPTS: -Dprogram.name=run.bat
      .
      CLASSPATH: ;D:\j2sdk1.4.0\lib\tools.jar;D:\jboss-3.0.3_tomcat-4.1.12\bin\\run.jar
      .
      ===============================================================================
      .
      log4j:ERROR Could not instantiate class [org.jboss.logging.appender.FileAppender].
      java.lang.ClassNotFoundException: org.jboss.logging.appender.FileAppender
      .
      .
      .
      .


      I tried to modify the JBOSS_CLASSPATH in the run.bat,added jboss-common.jar to this classpath;
      run again,the first ClassNotFoundException disappeared,but throws another new exception, so I added log4j.jar and jboss-jmx.jar to the classpath again,the new Exceptions disappeared,but the ClassNotFoundException throws again as the first time.
      who can tell me the reason? thanks!

        • 1. Re: jboss-3.0.3_tomcat-4.1.12 startup throws ClassNotFoundEx
          rossangelov

          I'm having the same issue and so far no solution. Fortunately, it is not affecting the performance. To review the log info I'm using the ConsoleAppender and then redirecting the output to a file but I'd like to find a way to fix this error.

          Did you manage to resolve your problem?

          Is it possible that JBOSS is trying to get an instance of org.jboss.logging.appender.FileAppender but a different jog4j is overwriting the settings?

          • 2. Re: jboss-3.0.3_tomcat-4.1.12 startup throws ClassNotFoundEx
            raja05

            the log4j.properties is in the run.jar file. try updating the log4j.appender.FILE to this.
            log4j.appender.FILE=org.apache.log4j.FileAppender

            since lib/log4j-boot.jar is in the runtime, it should use that instead of the jboss FileAppender.

            -Raj