#Server Tomcat v8.5 Server at localhost failed to start.
1、 Investigation ideas
The most direct and effective way is to look at the console
2、 Specific solutions
As shown in the figure above, the reason for the error will be indicated in the exception information, generally in the following cases
-
- the workspace corresponding to Tomcat (for example, webapps or wtpwebapps in Tomcat installation directory) does not exist, as shown in the figure above
-
- solution: delete the corresponding folder and restart Tomcat. The project itself has errors or the project introduces jar package has problems
-
- solution: if it is built by maven, you can run as – & gt; Maven test to check if there is a problem with the dependent jar package and the servlet mapping definition is duplicate, web.xml Use
< url-pattern>/ url</ The servlet mapped by code> and the servlet class URL annotated by @ webservlet ("/ URL")
are duplicated either
Similar Posts:
- Tomcat failed to start: Server Tomcat v8.5 Server at localhost failed to start
- Several common error reporting and startup problems of Tomcat
- Tomcat10 Error: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
- HTTP Status 500 – Unable to compile class for JSP settlement program
- Using idea and maven, there is an error: (4, 21) Java: there is no problem with the package javax.servlet
- [Solved] Maven error: invalid CEN header (bad signature)
- [Solved] Setting property ‘source’ to ‘org.eclipse.jst.jee.server:test’ did not find a matching property
- [Solved] Spring Error: Artifact spring:war exploded: Error during artifact deployment. See server log for details
- Tomcat Deployed Applications Start Error: java.lang.ClassCastException: [XXX].filter.CharacterEncoding cannot be cast to jakarta.servlet.Filter
- Using Tomcat 10 to build a servlet, an error is reported: class XXX is not a servlet