logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: ClassCastException in 1.2.4
Date Thu, 20 Jun 2002 21:36:42 GMT

I bet you have multiple copies of log4j.jar in the classpath, WEB-LIB or 
JAVA_HOME/jre/lib/ext. Correct?

At 17:21 20.06.2002 -0400, Edward Q. Bridges wrote:
>sorry about that,
>
>OS:
>bash-2.03$ uname -a
>SunOS pinky-nyc 5.8 Generic_108528-10 sun4u sparc SUNW,UltraSPARC-IIi-Engine
>
>JDK:
>bash-2.03$ $JAVA_HOME/bin/java -version
>java version "1.3.1_01"
>Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
>Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
>
>Environment:
>Weblogic 6.1, SP2
>
>the Logger instance is stored as a static final member of an interface 
>that our
>BaseServlet (and several utility classes) implement.  the member of the
>interface is initialized by a call to a "getInstance()" method in a wrapper
>class that handles calling DOMConfigurator etc.  that is the call to 
>"start()"
>you see below.
>
>in the meantime we've rolled back to 1.1.3.  we're launching in a week, so i
>hope that this can be worked out.
>
>cheers
>--e--
>
>
>
>On Thu, 20 Jun 2002 23:11:15 +0200, Ceki Gülcü wrote:
>
> >
> > Which OS? JDK? Environment?
> >
> > At 15:55 20.06.2002 -0400, Edward Q. Bridges wrote:
> >
> > >this is a "new" error that has begun appearing sporadically since we
>upgraded.
> > >
> > >unfortunately, all our development grinds to a halt, since it won't print
> > >any messages to the console after this.
> > >
> > >therefore, it's a pretty big issue for us.
> > >
> > >has anyone encountered this?
> > >
> > >thanks
> > >--e--
> > >
> > >
> > >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)
> > >         at
> > > org.apache.log4j.xml.DOMConfigurator.findAppenderByName
>(DOMConfigurator.java:140)
> > >         at
> > > org.apache.log4j.xml.DOMConfigurator.findAppenderByReference
>(DOMConfigurator.java:153)
> > >         at
> > > org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement
>(DOMConfigurator.java:415)
> > >         at
> > > 
> org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:335)
> > >         at
> > > org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:788)
> > >         at
> > > 
> org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:673)
> > >         at
> > > 
> org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
> > >         at
> > > 
> org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:584)
> > >         at
> > > org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:694)
> > >         at teachscape.common.log.LogWrapper.start(Unknown Source)
> > >
> > >--
> > >Edward Q. Bridges
> > >http://www.teachscape.com
> >
> > --
> > Ceki
> >
> >
> > --
> > To unsubscribe, 
> e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: 
> <mailto:log4j-user-help@jakarta.apache.org>
> >
>
>
>--
>Edward Q. Bridges
>http://www.teachscape.com

--
Ceki


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message