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:
- Remove log4j.jar from myapp/WEB-INF/lib (it is already in Tomcat/common/lib)
- Restart app.
- Debug using the reams of useful error messages which suddenly appear in the output.