tomcat启动的时候报错了: 严重: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tomcat.util.IntrospectionUtils.callMethodN(IntrospectionUt ils.java:930) at org.apache.catalina.startup.CallMethodMultiRule.end(WebRuleSet.java:7 60) at org.apache.tomcat.util.digester.Rule.end(Rule.java:229) at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:105 8) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme nt(AbstractSAXParser.java:606) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endNamesp aceScope(XMLDTDValidator.java:2054) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEnd Element(XMLDTDValidator.java:2005) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElemen t(XMLDTDValidator.java:879) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanEndElement(XMLDocumentFragmentScannerImpl.java:1741) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2898) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X MLDocumentScannerImpl.java:607) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanDocument(XMLDocumentFragmentScannerImpl.java:488) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:835) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. java:123) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab stractSAXParser.java:1210) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p arse(SAXParserImpl.java:568) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562) at org.apache.catalina.startup.ContextConfig.applicationWebConfig(Contex tConfig.java:369) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:10 62) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:261) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:120) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 238) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:761) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74 1) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 48) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.IllegalArgumentException: Invalid hello.do in servlet mapping at org.apache.catalina.core.StandardContext.addServletMapping(StandardCo ntext.java:2385) at org.apache.catalina.core.StandardContext.addServletMapping(StandardCo ntext.java:2361) ... 49 more 四月 10, 2017 10:22:16 下午 org.apache.catalina.startup.ContextConfig applicatio nWebConfig 严重: Parse error in application web.xml file at jndi:/localhost/hello/WEB-INF/w eb.xml org.xml.sax.SAXParseException; systemId: jndi:/localhost/hello/WEB-INF/web.xml; lineNumber: 15; columnNumber: 21; Error at (15, 21: Invalid hello. do in servlet mapping at org.apache.tomcat.util.digester.Digester.createSAXException(Digester. java:2726) at org.apache.tomcat.util.digester.Digester.createSAXException(Digester. java:2752) at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:106 1) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme nt(AbstractSAXParser.java:606) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endNamesp aceScope(XMLDTDValidator.java:2054) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEnd Element(XMLDTDValidator.java:2005) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElemen t(XMLDTDValidator.java:879) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanEndElement(XMLDocumentFragmentScannerImpl.java:1741) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2898) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X MLDocumentScannerImpl.java:607) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanDocument(XMLDocumentFragmentScannerImpl.java:488) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:835) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. java:123) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab stractSAXParser.java:1210) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p arse(SAXParserImpl.java:568) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562) at org.apache.catalina.startup.ContextConfig.applicationWebConfig(Contex tConfig.java:369) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:10 62) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:261) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:120) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 238) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:761) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74 1) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 48) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.IllegalArgumentException: Invalid hello.do in servlet mapping at org.apache.catalina.core.StandardContext.addServletMapping(StandardCo ntext.java:2385) at org.apache.catalina.core.StandardContext.addServletMapping(StandardCo ntext.java:2361) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tomcat.util.IntrospectionUtils.callMethodN(IntrospectionUt ils.java:930) at org.apache.catalina.startup.CallMethodMultiRule.end(WebRuleSet.java:7 60) at org.apache.tomcat.util.digester.Rule.end(Rule.java:229) at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:105 8) ... 41 more 四月 10, 2017 10:22:16 下午 org.apache.catalina.startup.ContextConfig applicatio nWebConfig 严重: Occurred at line 15 column 21 四月 10, 2017 10:22:16 下午 org.apache.catalina.startup.ContextConfig start 严重: Marking this application unavailable due to previous error(s) 四月 10, 2017 10:22:16 下午 org.apache.catalina.core.StandardContext start 严重: Error getConfigured 四月 10, 2017 10:22:16 下午 org.apache.catalina.core.StandardContext start 严重: Context [/hello] startup failed due to previous errors 四月 10, 2017 10:22:16 下午 org.apache.coyote.http11.Http11Protocol start 信息: Starting Coyote HTTP/1.1 on http-8080 四月 10, 2017 10:22:16 下午 org.apache.jk.common.ChannelSocket init 信息: JK: ajp13 listening on /0.0.0.0:8009 四月 10, 2017 10:22:16 下午 org.apache.jk.server.JkMain start 信息: Jk running ID=0 time=0/18 config=null 四月 10, 2017 10:22:16 下午 org.apache.catalina.startup.Catalina start 信息: Server startup in 273 ms 咱们看看,怎么解决这个问题: 检查一下,发现: E:\apache-tomcat-6.0.10\webapps\hello\WEB-INF\web.xml 里面: HelloServlet hello.do 这里的配置: HelloServlet //1.注意应该把hello.do改成/hello.do /hello.do 这样就可以了. -----------------------------------------------
java.lang.reflect.invocationtargetexcepti_JAVA零碎要点008---tomcat启动的时候报错了严重: End event threw exception ...
最新推荐文章于 2024-07-19 07:00:00 发布