Announcement Announcement Module
No announcement yet.
Tomcat 5.5, Log4J, Spring Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tomcat 5.5, Log4J, Spring

    Hi there,

    I recently upgraded to Tomcat 5.5 (before I was running 4.1.x). Now my logging is broken.
    During startup Tomcat writes to the default server logs that the files I've setup in log4j.xml could not be found.
    I'm using Springs Log4jConfigListener with the env-variable ${webapp.root} for logfiles relative to my application.
    I think now Tomcat 5.5 searches a Log4J config file and find my log4j.xml at a point where ${webapp.root} is not set. Therefore initialization fails.
    This isn't corrected by the Log4jConfigListener afterwards (I think because Log4J is already configured)...

    Am I completly wrong or is there any solutions for this problem?
    Thanks in advance.

  • #2
    I also have this problem.

    Tomcat5.5 + spring + log4j.xml(not

    Tomcat stops due to prev error, Error listenerStart.

    I check spring sample, none of log4j.xml could be found but

    Could somebody solve it?




    • #3
      Could you post some stacktrace or info messages. Tomcat 5.5 doesn't work by default with log4j - see this webpage for more info: