tomcat-SEVERE: Error listenerStart and startup failed due

created at 07-06-2021 views: 2

problem description

Start tomcat error

org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart //Report an error
org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/******] startup failed due to previous errors //error report

Successfully started

Report an error //Actually, before this, it has already failed

The startup fails, the error you see is not a real error, and the essential error is not printed.

reason

Because before the error was reported, other errors were actually reported, but they were not printed out.

Solution

Create a new file in the project classes directory under the tomcat deployment directory

Solution

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 will see the real cause of the error.

Please log in to leave a comment.