Tomcat Error listenerStart

I’m sure I’m not the only one who has battled with this startup error:

4985 [main] ERROR org.apache.catalina.core.StandardContext  РError listenerStart
4985 [main] ERROR org.apache.catalina.core.StandardContext  РContext [/mycontext] startup failed due to previous errors

The problem is getting the real cause of the problem to appear in the log. I’ve had this problem various times in the past (must be repeating the same mistakes). Today’s answer was simple:

  1. Remove log4j.jar from myapp/WEB-INF/lib (it is already in Tomcat/common/lib)
  2. Restart app.
  3. Debug using the reams of useful error messages which suddenly appear in the output.
  

One thought on “Tomcat Error listenerStart

  1. Note to self: remember if you are using maven, after removing from pom.xml you must do “maven clean” otherwise log4j will still be in the package folder.

Leave a Reply

Your email address will not be published. Required fields are marked *