tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandy <sandyperez...@gmail.com>
Subject Re: log4j to write Tomcat logs to Windows Event Log
Date Tue, 24 Jul 2012 15:13:54 GMT
Hello, 

Did you install Tomcat as a Windows service using the installer for windows?
If that's the case, review your configuration. The same occurred to me and I
solved it by configuring the service. Right-click on tomcat icon at the
systray and then click on "Configure...". In the "Java" tab, in the field
"Java Options", I have the following properties defined:

...
-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat
7.0\endorsed
...
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\Program Files\Apache Software
Foundation\Tomcat 7.0\lib\log4j.properties
...

Finally, I created the C:\Program Files\Apache Software Foundation\Tomcat
7.0\endorsed because I didn't exist and then I copied log4j.jar inside it.
By doing this, the warning message disappeared, at least that was my case.

I hope my solution works for you as well. Good luck. 
  Sandy




--
View this message in context: http://tomcat.10.n6.nabble.com/log4j-to-write-Tomcat-logs-to-Windows-Event-Log-tp4983672p4984394.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

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


Mime
View raw message