tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric B." <ebe...@hotmail.com>
Subject Re: Log4j vs JULI configuration discrepancy
Date Thu, 13 Aug 2009 18:44:05 GMT
"Eric B." <ebenze@hotmail.com> wrote in message 
news:h5um4f$jhb$1@ger.gmane.org...
> "Mark Thomas" <markt@apache.org> wrote in message 
> news:4A7C9110.50907@apache.org...
>> Eric B. wrote:
>>> Is there a workaround for this, or just one of those things that you 
>>> have to
>>> learn to live with?
>>
>> In catalina.properties, modify the following entry as shown:
>> common.loader=${catalina.base}/lib,${catalina.home}/lib,${catalina.home}/lib/*.jar
>>
>> then you can place log4j.properties in CATALINA_BASE/lib
>
> Another really strange result.  If I delete the logging.properties in 
> CATALINA_BASE/conf, I get the following error msg:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> Caused by: java.lang.ClassNotFoundException:
>        at java.net.URLClassLoader$1.run(Unknown Source)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> Could not find the main class: .  Program will exit.
>
> Not quite sure why - I looked at the startup script and it is supposed to 
> ignore it if missing, so not sure why I would be getting the 
> ClassNotFoundException.  So far, my workaround has been to use an empty 
> logging.properties, and tomcat launches.


After some more searching, I found this bug had already been raised and 
fixed in 6.0.19.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45585

Eric 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message