Class loader problems
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > Class loader problems




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Class loader problems  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: Class loader problems  
Brian J. Sayatovic


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-30-05 12:50 PM

Try these...

http://publib.boulder.ibm.com/infoc..._classload.html

http://www.webagesolutions.com/know...b012/index.html

Regards,
Brian.

<juan.acosta@gmail.com> wrote in message
news:15248654.1119978147333.JavaMail.wassrvr@ltsgwas007.sby.ibm.com...
> Hi,
>
> I have a problem deploying my application because of a class loader issue.
It has to do with Log4J. I have to deploy the Log4J jar and other Jars that
use it within the WEB-INF/lib of my WAR (Portlet APP) or else there is a
conflict with another Logger or LogAppender. It seems that the conflict is
between a ConsoleAppender and a RollingFileAppender. 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 and WebSphere
Portal Server?, and what are SINGLE and MULTIPLE class loader policies?
>
> 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 of[/vbc
ol]
type[vbcol=seagreen]
> 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@2c67fb94].
> java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java(Compiled Code))
> at
org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java
: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:165)
> ..







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:16 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register