2 Replies Latest reply on Nov 10, 2009 3:48 PM by jithu.mada

    NoSuchFieldError: org/apache/log4j/Level.TRACE

    jithu.mada

      Hi all,

      We have installed Jboss 5.1.0.GA on AIX 6 (64 bit) and are using IBM JDK 5.0.

      Its a fresh install and have not deployed applications on it, but when we start the server we get the following exception

      Exception in thread "main" java.lang.NoSuchFieldError: org/apache/log4j/Level.TRACE at org.jboss.logging.log4j.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.java:94)

      and as a result of the exception, Jboss shuts down itself.

      I tried copying the latest version of apache log4j into jboss/common/lib but I still get the same exception.

      Can anyone please what can be the issue here.

      thanks in advance.

        • 1. Re: NoSuchFieldError: org/apache/log4j/Level.TRACE
          peterj

           

          I tried copying the latest version of apache log4j into jboss/common/lib

          Don't do that - the log4 JAR file in that directory is the correct one. Most likely you have an older log4j.jar file in the classpath somewhere, or perhaps in the endorsed directory for the JVM. If the jar is in neither of those locations, add the -verbose:class JVM option ot the JAVA_OPTS in run.conf. This option should tell the JVM to print out the class name and jar file location for each class loaded (I say it should because it is supposed to be a standard run option but I have no idea whether the AIX JVM supports it).

          • 2. Re: NoSuchFieldError: org/apache/log4j/Level.TRACE
            jithu.mada

            Thank you, Peter, that was the problem. I had a old log4j jar file in jre/lib/ext folder.