06-28-05 10:55 PM
Hi,
I have a problem deploying my application because of a class loader issue. I
t has to do with Log4J. I have to deploy the Log4J jar and other Jars that u
se it within the WEB-INF/lib of my WAR (Portlet APP) or else there is a conf
lict with another Logger or
LogAppender. It seems that the conflict is between a ConsoleAppender and a R
ollingFileAppender. I have experimented allot but all is by trial and error
and I'm getting tired. Where can I find more information about class loaders
in WebSphere App Server a
nd WebSphere Portal Server?, and what are SINGLE and MULTIPLE class loader p
olicies?
The stack trace goes as follows:
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to
a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [sun.misc.Launcher$AppClassLoader@300abbdf] whereas object o
f type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [com.ibm.ws
.classloader.ExtJarClassLoader@1382300637 Local ClassPath: ...
log4j:ERROR Could not instantiate appender named "A1".
log4j:ERROR Could not create an Appender. Reported error follows.
java.lang.ClassCastException: org.apache.log4j.RollingFileAppender
..
log4j:ERROR Could not parse input source [org.xml.sax.InputSource@2c67fb
94].
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java(Compiled Code))
at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.j
ava:141)
..
log4j:ERROR Could not create an Appender. Reported error follows.
java.lang.ClassCastException: org.apache.log4j.RollingFileAppender
at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:1
65)
..
[ Post a follow-up to this message ]
|