logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: log4j 1.3 alpha 6 and tomcat
Date Fri, 23 Sep 2005 21:34:06 GMT

What version of commons-logging are you using?  If you use Log4j for Tomcat
logging, put both log4j.jar and commons-logging.jar (not
commons-logging-api.jar) in common/lib and your log4j.xml or log4j.properties
in common/classes.  And make sure you use commons-logging version 1.0.4 or
above.

Jake

Quoting marc.baumgartner@degussa-bank.de:

> Hi all,
> I have got a problem with log4j 1.3 alpha 6 and tomcat 5.5.9:
>
> If I start the tomcat 5.5.9 I get the following exception:
>
> log4j:INFO Creating new logger
> [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/kba]] in
> repository [default].
> log4j:INFO Creating new logger [org.apache.catalina.startup.TldConfig] in
> repository [default].
> log4j:INFO Creating new logger
> [org.apache.catalina.startup.DigesterFactory] in repository [default].
> log4j:INFO Creating new logger [org.apache.commons.digester.Digester] in
> repository [default].
> log4j:INFO Creating new logger [org.apache.commons.digester.Digester.sax]
> in repository [default].
> java.lang.reflect.InvocationTargetException
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:585)
>       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
>       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
> Caused by: java.lang.NoSuchFieldError: ERROR
>       at org.apache.commons.logging.impl.Log4JLogger.error(
> Log4JLogger.java:192)
>       at org.apache.tomcat.util.digester.Digester.endElement(
> Digester.java:1059)
>       at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
>       at
> org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
> Source)
>       at
> org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
>       at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
> Source)
>       at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
>  Source)
>       at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>  Source)
>       at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>       at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>       at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
>       at org.apache.catalina.startup.TldConfig.tldScanStream(
> TldConfig.java:513)
>       at org.apache.catalina.startup.TldConfig.tldScanJar(
> TldConfig.java:471)
>       at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:306)
>       at org.apache.catalina.core.StandardContext.processTlds(
> StandardContext.java:4193)
>       at org.apache.catalina.core.StandardContext.start(
> StandardContext.java:4049)
>       at org.apache.catalina.core.ContainerBase.start(
> ContainerBase.java:1012)
>       at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>       at org.apache.catalina.core.ContainerBase.start(
> ContainerBase.java:1012)
>       at org.apache.catalina.core.StandardEngine.start(
> StandardEngine.java:442)
>       at org.apache.catalina.core.StandardService.start(
> StandardService.java:450)
>       at org.apache.catalina.core.StandardServer.start(
> StandardServer.java:683)
>       at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
>       ... 6 more
>
> Is this a bug or am I doing something wrong?
>
> thanks,
> Marc
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message