Consider the following output from a Tomcat server under Eclipse:
INFO: Initializing Coyote HTTP/1.1 on http-8080
INFO: Initialization processed in 634 ms
INFO: Starting service Catalina
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
SEVERE: Error listenerStart
SEVERE: Context [/MyServlet] startup failed due to previous errors
I would like to figure out what exception caused “Error listenerStart”, but Spring seems to be preventing me from finding the error via Eclipse. I’d love to start Catalina manually, but that doesn’t seem to do anything.
What’s the best way to find the hidden exception? I’m not afraid to use torture methods.
In my case, the answer was:
java.util.logging.SimpleLoggerto find out what exceptions were being hidden.logging.propertiesfile, cut-and-pasted from the Tomcat docs, was bunk. Several exceptions were going into black holes in log files (maybe they weren’t flushed)? Switching everything to a singleConsoleLoggerenabled me to see all exceptions.-Djava.util.logging.config.file="/<path>/logging.properties"was present in my Run Configuration.