5 Replies Latest reply on Jul 29, 2014 12:47 AM by jaikiran

    Log4j 1.2.17 Jar not found

    msegreti4355

      I am deploying my application as a JAR on JBoss EAP 6.2 and trying to implement apache log4j 1.2.17.

       

       

      In my program i have:

       

       

          import org.apache.log4j.Logger;

          import org.apache.log4j.PropertyConfigurator;

          ...

          Logger newLogger = Logger.getLogger(name);

          PropertyConfigurator.configure("log4j.properties path");

          return  newLogger;

       

       

      However, every time I try to run through this I always get a stack trace with this caused by:

       

       

          java.lang.NoClassDefFoundError: org/apache/log4j/Logger

        at "the program I am in"...

       

       

      The log4j.jar file is defined within my classpath of my project.

       

       

      Any help would be greatly appreciated.

       

       

      Matt