Thanks Konstantin:

I thought the JULI Classes automatically replaced the java.util.logging
Classes with the same name.  Thanks for catching that, I'll checkout
catalina.sh and try to figure this out.

TC



throwsCode wrote:
> 
> Hi all;
> 
> I sure that is going to turnout to be a stupid question but I've played
> with it for two days and made no progress.  I can create a JULI handler as
> long as I don't apply a prefix, here is the logging.properties file
> (keeping it as simple as possible):
> 
> THIS WORKS FINE ----
> -----------------------------------------------------------------------------------
> handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
> .handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
> org.apache.juli.FileHandler.level = FINE
> org.apache.juli.FileHandler.directory = ${user.home}
> org.apache.juli.FileHandler.prefix = localhost.
> java.util.logging.ConsoleHandler.level = FINE
> java.util.logging.ConsoleHandler.formatter =
> java.util.logging.SimpleFormatter
> -----------------------------------------------------------------------------------
> 
> THIS FAILS ----
> -----------------------------------------------------------------------------------
> handlers = 1pae.org.apache.juli.FileHandler,
> java.util.logging.ConsoleHandler
> .handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
> 1pae.org.apache.juli.FileHandler.level = FINE
> 1pae.org.apache.juli.FileHandler.directory = ${user.home}
> 1pae.org.apache.juli.FileHandler.prefix = localhost.
> java.util.logging.ConsoleHandler.level = FINE
> java.util.logging.ConsoleHandler.formatter =
> java.util.logging.SimpleFormatter
> -----------------------------------------------------------------------------------
> 
> THE FOLLOWING ERROR OCCURS ON TOMCAT STARTUP:
> -----------------------------------------------------------------------------------
> Can't load log handler "1pae.org.apache.juli.FileHandler"
> java.lang.ClassNotFoundException: 1pae.org.apache.juli.FileHandler
> java.lang.ClassNotFoundException: 1pae.org.apache.juli.FileHandler
>       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.util.logging.LogManager$3.run(Unknown Source)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.util.logging.LogManager.loadLoggerHandlers(Unknown Source)
>       at java.util.logging.LogManager.initializeGlobalHandlers(Unknown Source)
>       at java.util.logging.LogManager.access$900(Unknown Source)
>       at java.util.logging.LogManager$RootLogger.addHandler(Unknown Source)
>       at java.util.logging.LogManager$3.run(Unknown Source)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.util.logging.LogManager.loadLoggerHandlers(Unknown Source)
>       at java.util.logging.LogManager.addLogger(Unknown Source)
>       at java.util.logging.LogManager$1.run(Unknown Source)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.util.logging.LogManager.<clinit>(Unknown Source)
>       at java.util.logging.Logger.getLogger(Unknown Source)
>       at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
>       at
> org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178)
>       at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:171)
>       at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243)
>       at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:298)
>       at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
> 
> The tomcat-juli.jar is available as demonstrated in the first example that
> works.  Why is the prefix not being recognized?
> 
> Your assistance is greatly appreciated.
> 
> TC
> 

-- 
View this message in context: 
http://old.nabble.com/JULI-prefix-not-recognized--tp31907205p31907973.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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

Reply via email to