Tomcat start error: severe: error listener start
problem
Today, we deal with a problem. After modifying the code and deploying it to the server, we report an error when starting Tomcat. The error message is as follows:
org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/projectname] startup failed due to previous errors
error listener code> this error message is too vague. Check it web.xml We need more detailed log information to know what caused the error, so that we can quickly locate the error point. So we need to modify the log level of Tomcat to output what we need.
method
Create a new file called in the
WEB-INF/classes code> directory logging.properties code>, as follows
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
In this way, Tomcat's own log is used for log output.
After adding the log output configuration file, you can see the detailed error report after restart. After looking at the log, I found my own error, because the JDK version used by my local compilation environment is higher than that of the server. As a result, spring failed to initialize the bean, and Tomcat started with an error.
Everyone's mistakes are not the same, so I won't repeat the following mistakes.
Read More:
- Solution to Tomcat starting error listener start
- IntelliJ idea solves Tomcat error: error listener start
- Error: (serious: a child container failed during start) (server component failed to start so Tomcat is unable)
- [Solved] Tomcat Failed to Start Error: Server Tomcat v8.5 Server at localhost failed to start
- A child container failed during start Tomcat error prompt
- tomcat Issues org.apache.catalina.LifecycleException: Failed to start component
- Tomcat start error touch under Linux
- Maven failed to start component [standard engine [Tomcat] when using tomcat7 Maven plugin plug-in run
- Tomcat service failed to start
- Tomcat — failed to start, flash back
- An error occurred when starting Tomcat in Eclipse: the sub container failed to start
- Start Tomcat and report error occurred during initialization of VM could not reserve enough space for object
- Start tomcat server error Context initialization failed
- Server Tomcat v8.0 Server at localhost failed to start.
- Server Tomcat v7.0 server at localhost failed to start
- Start Tomcat and report an error: tcnative-1.dll: can’t load ia 32-bit. DLL on a amd 64 bit platform
- Tomcat start error ERROR:transport error 202:bind failed:Address already
- Tdengine failed to start, start request repeated too quickly for taosd.service
- The Tomcat connector configured to listen on port 7014 failed to start
- The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in u