tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <>
Subject RE: embedded Tomcat (5.5.23) application logging (java.util.logging)
Date Sat, 13 Oct 2007 14:35:07 GMT
> From: Johnny Kewl [] 
> Subject: Re: embedded Tomcat (5.5.23) application logging 
> (java.util.logging)
> This "java.util.logging.manager" is part of Java, not Tomcat...
> So on the command line "as Java starts" it inits this...
> So I think even if this property is set as the 1st line in 
> your code, its too late.

All the above is correct.  See the API doc for
java.util.logging.LogManager.  The static initializer for that class
uses either an instanced of itself or an instance of the class named on
the aforementioned system property.  Thus, you need to set
java.util.logging.manager prior to initializing the JVM.

Possible solutions:

1) Make sure the system property is set on the command line for the

2) Write your own launcher that sets the property then initializes a JVM
via JNI (thereby sacrificing platform independence).

3) Start the embedded Tomcat in a child JVM, so its system properties
can be set beforehand.  Use java.lang.ProcessBuilder or

 - Chuck

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message