Sorry, I managed to edit some really pertinent information from my previous post.
Logging is working at some level through the service. However, it doesn't seem to be picking up anything from log4j.properties, whether it's in %CATALINA_HOME%\common\classes or <MY_WEB_APP>\WEB-INF\classes. When I run tomcat using startup.bat or catalina.bat, the log4j.properties are read as expected and logging works fine. It's just that when I run as a service, the following logs are all I get: jakarta_service_<datestamp>.log, stdout_<datestamp>.log and stderr_<datestamp>.log. There is a certain amount of logging configuration specified for the service itself in the documentation http://jakarta.apache.org/tomcat/tomcat-5.5-doc/windows-service-howto.ht ml, but none of it refers to integrating with log4j. -----Original Message----- From: skausl [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 19, 2005 2:19 PM To: 'Tomcat Users List' Subject: RE: Tomcat Service isn't reading application specific log4j.properties I have log4j-1.2.11.jar in Tomcat\common\lib and log4j.properties in Tomcat\common\classes\. > -----Original Message----- > Sorry if this is an oft-repeated question. Digging through old > archives of this list and Google haven't turned up anything directly > related. > > I'm trying to run Tomcat 5.5.9 as a windows service (installed it > using service.bat), but for some unknown reason, it does not pick up > the log4j.properties files located in my applications WEB-INF\classes > directory. As far as I can tell, the java options, classpath and > startup class are identical for both. Is this a limitation/weakness > of the Windows Service or do I have something mis-configured? > > Thank You. > Brian --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
