Tomcat severe: error listener start and startup failed due

Time:2020-9-15

problem

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.

reason

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

resolvent

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  
org.apache.juli.FileHandler.directory = ${catalina.base}/logs  
org.apache.juli.FileHandler.prefix = error-debug.   
java.util.logging.ConsoleHandler.level = FINE  
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter

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