Tomcat severe: error listener start and startup failed due



Start Tomcat error

org.apache.catalina.core.StandardContext startInternal 
Severe: error listenerStart // an error is reported
org.apache.catalina.core.StandardContext startInternal 
Severe: context [/ * * * *] startup failed due to previous errors // an error is reported

Start successfully

Report an error // in fact, it has failed before

Starting failed. The error reported is not a real error. The essential error is not printed.


Because before the error is reported, other errors have actually been reported, but they are not printed out.


Create a new file in the project classes directory under Tomcat deployment directory
Tomcat severe: error listener start and startup failed due

handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler  
org.apache.juli.FileHandler.level = FINE = ${catalina.base}/logs  
org.apache.juli.FileHandler.prefix = error-debug.   
java.util.logging.ConsoleHandler.level = FINE  

After that, you’ll see the real cause of the error.