> From: Johnny Kewl [mailto:[EMAIL PROTECTED] 
> 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
launcher.

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
java.lang.Runtime#exec.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
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: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to