Servlet中tomcat服务器常见错误

tech2022-07-15  145

02-Sep-2020 19:52:46.079 信息 [RMI TCP Connection(15)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 02-Sep-2020 19:52:46.085 严重 [RMI TCP Connection(15)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file 02-Sep-2020 19:52:46.086 严重 [RMI TCP Connection(15)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors 解决方法:监听器、过滤器多建,或者可能是一个项目中只能存在唯一的接口,多创建了一个,多仔细观察,多注意

02-Sep-2020 20:06:12.619 严重 [RMI TCP Connection(30)-127.0.0.1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] 02-Sep-2020 20:06:12.625 严重 [RMI TCP Connection(30)-127.0.0.1] org.apache.tomcat.util.modeler.BaseModelMBean.invoke Exception invoking method manageApp java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] 02-Sep-2020 20:06:12.626 严重 [RMI TCP Connection(30)-127.0.0.1] org.apache.tomcat.util.modeler.BaseModelMBean.invoke Exception invoking method createStandardContext [2020-09-02 08:06:12,693] Artifact web:war exploded: Error during artifact deployment. See server log for details.

解决方法:可能是web.xml配置问题,也可能是注解的使用@WebServlet(“reader”) 少了一个斜杠,加一个斜杠即可@WebServlet("/reader"),仔细看不同

运行出来了,字符编码的问题,注意看设置字符编码的地方

02-Sep-2020 21:52:58.781 严重 [RMI TCP Connection(9)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file 02-Sep-2020 21:52:58.781 严重 [RMI TCP Connection(9)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/Servletday3_1] startup failed due to previous errors 解决方法:注解使用错误,注意看注解是否匹配。

04-Sep-2020 20:11:40.654 严重 [RMI TCP Connection(17)-127.0.0.1] org.apache.tomcat.util.digester.Digester.endElement End event threw exception java.lang.IllegalArgumentException: Can’t convert argument: null 04-Sep-2020 20:11:40.663 严重 [RMI TCP Connection(17)-127.0.0.1] org.apache.tomcat.util.descriptor.web.WebXmlParser.parseWebXml Parse error in application web.xml file at [file:/E:/StudyServlet/Review/out/artifacts/web_war_exploded/WEB-INF/web.xml] org.xml.sax.SAXParseException; systemId: file:/E:/StudyServlet/Review/out/artifacts/web_war_exploded/WEB-INF/web.xml; lineNumber: 20; columnNumber: 21; Error at (20, 21) : Can’t convert argument: null

04-Sep-2020 20:11:40.811 严重 [RMI TCP Connection(17)-127.0.0.1] org.apache.tomcat.util.descriptor.web.WebXmlParser.parseWebXml Occurred at line [20] column [21] 04-Sep-2020 20:11:40.815 严重 [RMI TCP Connection(17)-127.0.0.1] org.apache.catalina.startup.ContextConfig.configureStart Marking this application unavailable due to previous error(s) 04-Sep-2020 20:11:40.817 严重 [RMI TCP Connection(17)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more components marked the context as not correctly configured 04-Sep-2020 20:11:40.818 严重 [RMI TCP Connection(17)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors 问题原因:web.xml 配置出错,仔细查看下

最新回复(0)