You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Ramu Srinivasan <ra...@gmail.com> on 2005/11/03 02:27:41 UTC
LogConfigurationException NullPointerException
Hi,
I am using ant to build my EAR which is deployed in WAS 5.1. Log4J isn't
getting initialized and I get the following exception. But it works file when
I build the EAR file with WASAD. At one point, I know it was working with ANT
build. Any help on this will be appreciated. Thanks in advance.
Ramu
[11/2/05 14:01:59:565 CST] 7c569bce SystemErr R
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException
[11/2/05 14:01:59:565 CST] 7c569bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance
(LogFactoryImpl.java:532)
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:272)
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:246)
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
org.quartz.simpl.SimpleThreadPool.getLog(SimpleThreadPool.java:130)
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:502)
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R Caused by:
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor
(LogFactoryImpl.java:416)
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance
(LogFactoryImpl.java:525)
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R ... 5 more
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R Caused by:
java.lang.NullPointerException
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
com.ibm.ws.classloader.SinglePathClassProvider.getRealResourcePath
(SinglePathClassProvider.java(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
com.ibm.ws.classloader.SinglePathClassProvider$1.run
(SinglePathClassProvider.java(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java
(Inlined Compiled Code))
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
com.ibm.ws.classloader.SinglePathClassProvider.getClassBytesFromDir
(SinglePathClassProvider.java(Inlined Compiled Code))
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
com.ibm.ws.classloader.SinglePathClassProvider.getClassBytes
(SinglePathClassProvider.java(Inlined Compiled Code))
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java
(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java
(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:460)
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
java.security.AccessController.doPrivileged(Native Method)
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.loadClass
(LogFactoryImpl.java:454)
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor
(LogFactoryImpl.java:406)
[11/2/05 14:01:59:581 CST] 7c569bce SystemErr R ... 6 more
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance
(LogFactoryImpl.java:532)
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:272)
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:246)
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
org.quartz.simpl.SimpleThreadPool.getLog(SimpleThreadPool.java:130)
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:502)
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R Caused by:
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor
(LogFactoryImpl.java:416)
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance
(LogFactoryImpl.java:525)
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R ... 5 more
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R Caused by:
java.lang.NullPointerException
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
com.ibm.ws.classloader.SinglePathClassProvider.getRealResourcePath
(SinglePathClassProvider.java(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
com.ibm.ws.classloader.SinglePathClassProvider$1.run
(SinglePathClassProvider.java(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java
(Inlined Compiled Code))
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
com.ibm.ws.classloader.SinglePathClassProvider.getClassBytesFromDir
(SinglePathClassProvider.java(Inlined Compiled Code))
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
com.ibm.ws.classloader.SinglePathClassProvider.getClassBytes
(SinglePathClassProvider.java(Inlined Compiled Code))
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java
(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java
(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:460)
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
java.security.AccessController.doPrivileged(Native Method)
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.loadClass
(LogFactoryImpl.java:454)
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor
(LogFactoryImpl.java:406)
[11/2/05 14:01:59:581 CST] 7c525bce SystemErr R ... 6 more
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance
(LogFactoryImpl.java:532)
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:272)
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:246)
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
org.quartz.simpl.SimpleThreadPool.getLog(SimpleThreadPool.java:130)
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:502)
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R Caused by:
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor
(LogFactoryImpl.java:416)
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance
(LogFactoryImpl.java:525)
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R ... 5 more
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R Caused by:
java.lang.NullPointerException
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
com.ibm.ws.classloader.SinglePathClassProvider.getRealResourcePath
(SinglePathClassProvider.java(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
com.ibm.ws.classloader.SinglePathClassProvider$1.run
(SinglePathClassProvider.java(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java
(Inlined Compiled Code))
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
com.ibm.ws.classloader.SinglePathClassProvider.getClassBytesFromDir
(SinglePathClassProvider.java(Inlined Compiled Code))
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
com.ibm.ws.classloader.SinglePathClassProvider.getClassBytes
(SinglePathClassProvider.java(Inlined Compiled Code))
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java
(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java
(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:460)
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
java.security.AccessController.doPrivileged(Native Method)
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.loadClass
(LogFactoryImpl.java:454)
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor
(LogFactoryImpl.java:406)
[11/2/05 14:01:59:581 CST] 7c4f1bce SystemErr R ... 6 more
[11/2/05 14:01:59:581 CST] 7c48dbce SystemErr R
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException
[11/2/05 14:01:59:581 CST] 7c48dbce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance
(LogFactoryImpl.java:532)
[11/2/05 14:01:59:581 CST] 7c48dbce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:272)
[11/2/05 14:01:59:581 CST] 7c48dbce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:246)
[11/2/05 14:01:59:581 CST] 7c48dbce SystemErr R at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java(Compiled Code))
[11/2/05 14:01:59:581 CST] 7c48dbce SystemErr R at
org.quartz.simpl.SimpleThreadPool.getLog(SimpleThreadPool.java:130)
[11/2/05 14:01:59:581 CST] 7c48dbce SystemErr R at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:502)
[11/2/05 14:01:59:581 CST] 7c48dbce SystemErr R Caused by:
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException
[11/2/05 14:01:59:581 CST] 7c48dbce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor
(LogFactoryImpl.java:416)
[11/2/05 14:01:59:581 CST] 7c48dbce SystemErr R at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance
(LogFactoryImpl.java:525)
[11/2/05 14:01:59:581 CST] 7c48dbce SystemErr R ... 5 more
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: LogConfigurationException NullPointerException
Posted by Ramu Srinivasan <ra...@gmail.com>.
I finally got it to work. I needed a file named
org.apache.commons.logging.LogFactory under the folder META-INF/services
inside the WAR file.
-Ramu
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: LogConfigurationException NullPointerException
Posted by Ramu Srinivasan <ra...@gmail.com>.
Thanks, I already tried downloading latest ant, log4j, common logging. But
that didn't help.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: LogConfigurationException NullPointerException
Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
On Thu, 2005-11-03 at 01:27 +0000, Ramu Srinivasan wrote:
> Hi,
hi
please remember to prefix with your subject
> I am using ant to build my EAR which is deployed in WAS 5.1. Log4J isn't
> getting initialized and I get the following exception. But it works file when
> I build the EAR file with WASAD. At one point, I know it was working with ANT
> build. Any help on this will be appreciated. Thanks in advance.
sounds a little bit mysterious...
IIRC the latest code from trunk has a fix in for something similar. if
you haven't done this already please retry after build from SVN or from
a recent nightly. details about how to so this can be found linked from
http://jakarta.apache.org/commons.
- robert
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org