0 Replies Latest reply on Aug 26, 2009 4:45 PM by Chris Simons

    Is log4j.jar needed in non-JBoss environment?

    Chris Simons Expert

      Continuing to work with WebLogic here; I noticed that the JEE5/Booking example deploys a log4j.xml, but not the log4.jar.


      When I don't deploy log4j.jar with my own application on WebLogic 10.3.1, I'll eventually hit a point where the app will look for the jar.


      When I do include log4.jar, here's what I receive (before any entities are deployed, unlike in the previous example where the entities all deploy):




      log4j:WARN No appenders could be found for logger (org.hibernate.cfg.annotations.Version).
      log4j:WARN Please initialize the log4j system properly.
      <Aug 26, 2009 10:31:10 AM EDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment
      sk '1'. Error is: 'java.lang.NullPointerException'
      java.lang.NullPointerException
              at java.util.Properties$LineReader.readLine(Properties.java:418)
              at java.util.Properties.load0(Properties.java:337)
              at java.util.Properties.load(Properties.java:325)
              at com.bah.englink.util.EnglinkProps.<init>(EnglinkProps.java:18)
              at com.bah.englink.util.EnglinkProps.<clinit>(EnglinkProps.java:11)
              Truncated. see log file for complete stacktrace
      java.lang.NullPointerException
              at java.util.Properties$LineReader.readLine(Properties.java:418)
              at java.util.Properties.load0(Properties.java:337)
              at java.util.Properties.load(Properties.java:325)
              at com.bah.englink.util.EnglinkProps.<init>(EnglinkProps.java:18)
              at com.bah.englink.util.EnglinkProps.<clinit>(EnglinkProps.java:11)
              Truncated. see log file for complete stacktrace



      Like I said, when I don't add log4j.jar to my application, this error does not occur, but I do reach a point in the deployment where log4j.jar is needed.


      Any advise?  Thanks.