Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 5.5 complains about missing log.properties

 
Florian Anwander
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,

Our application requires Tomcat 5.5, which is not provided by us, but installed by the customers themselves. On MS-Windows installations it happens often (~15% of all Windows installations) that there is no localhost<date>.log written, but the stdout<date>.log shows the following message after startup:


Our own webapplication logs fine to the logfile definied in its own log4j-configuration and
the stdout<date>.log, stderr<date>.log and jakarta<date>.log are written to %TOMCAT%\logs\


Why is the tomcat looking at these installations for a log.properties in the C:\WINDOWS\system32 tree? (I know it is the directory from where the service is started, but other tomcats started as Service do not show this behaviour).

And how should this log.porperties look like? Should it be a copy of %TOMCAT%\conf\logging.properties?


I'd like to thank in advance for any help!

Best regards, Florian Anwander
 
Florian Anwander
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Florian Anwander wrote:Why is the tomcat looking at these installations for a log.properties in the C:\WINDOWS\system32 tree?

No one got no idea at all?

Regards Florian
 
Daesung Park
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your tomcat was started with a wrong path of logging.properties.
Check your catalina.sh(or .bat) file. Make sure to set -Djava.util.logging.config.file to path of logging.properties in %tomcat%/conf.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic