Sometimes Tomcat (or TomEE) doesn’t start saying something like:
SEVERE: Skipped installing application listeners due to previous error(s) Nov 26, 2012 9:22:46 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart Nov 26, 2012 9:22:46 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [/demo] startup failed due to previous errors
So great our code doesn’t work…but we don’t know why. Since that’s often while the class is instantiated that’s hard to debug your own code.