首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

Tomcat出现异常

2012-06-20 
Tomcat出现错误!SEVERE: End event threw exceptionjava.lang.reflect.InvocationTargetExceptionat sun.r

Tomcat出现错误!
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
  at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:613)
  at org.apache.tomcat.util.IntrospectionUtils.callMethodN(IntrospectionUt
ils.java:959)
  at org.apache.catalina.startup.CallMethodMultiRule.end(WebRuleSet.java:7
89)
  at org.apache.tomcat.util.digester.Rule.end(Rule.java:229)
  at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:113
8)
  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme
nt(AbstractSAXParser.java:606)
  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:1642)
  at org.apache.catalina.startup.ContextConfig.applicationWebConfig(Contex
tConfig.java:365)
  at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:10
76)
  at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:261)
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:142)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
578)
  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:799)
  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
9)
  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)

  at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1041)
  at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:964)
  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502
)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
  at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:321)
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:142)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)

  at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463
)
  at org.apache.catalina.core.StandardService.start(StandardService.java:5


25)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:701
)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:585)
  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:613)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> login.do in
 servlet mapping
  at org.apache.catalina.core.StandardContext.addServletMapping(StandardCo
ntext.java:2712)
  at org.apache.catalina.core.StandardContext.addServletMapping(StandardCo
ntext.java:2688)
  ... 45 more
2011-9-25 0:20:07 org.apache.catalina.startup.ContextConfig applicationWebConfig

SEVERE: Parse error in application web.xml file at jndi:/localhost/web1/WEB-INF/
web.xml
org.xml.sax.SAXParseException; systemId: jndi:/localhost/web1/WEB-INF/web.xml; l
ineNumber: 17; columnNumber: 21; Error at (17, 21: Invalid <url-pattern> login.d
o in servlet mapping
  at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.
java:2806)
  at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.
java:2832)
  at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:114
1)
  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme
nt(AbstractSAXParser.java:606)
  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:1642)
  at org.apache.catalina.startup.ContextConfig.applicationWebConfig(Contex
tConfig.java:365)
  at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:10
76)
  at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:261)
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:142)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
578)
  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:799)
  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
9)
  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)



  at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1041)
  at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:964)
  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502
)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
  at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:321)
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:142)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)

  at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463
)
  at org.apache.catalina.core.StandardService.start(StandardService.java:5
25)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:701
)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:585)
  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:613)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> login.do in
 servlet mapping
  at org.apache.catalina.core.StandardContext.addServletMapping(StandardCo
ntext.java:2712)
  at org.apache.catalina.core.StandardContext.addServletMapping(StandardCo
ntext.java:2688)
  at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:613)
  at org.apache.tomcat.util.IntrospectionUtils.callMethodN(IntrospectionUt
ils.java:959)
  at org.apache.catalina.startup.CallMethodMultiRule.end(WebRuleSet.java:7
89)
  at org.apache.tomcat.util.digester.Rule.end(Rule.java:229)
  at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:113
8)
  ... 38 more
2011-9-25 0:20:07 org.apache.catalina.startup.ContextConfig applicationWebConfig

SEVERE: Occurred at line 17 column 21

[解决办法]
Parse error in application web.xml file at jndi:/localhost/web1/WEB-INF/
web.xml
项目配置有问题,去web。xml下看看
[解决办法]
SEVERE: Parse error in application web.xml file at jndi:/localhost/web1/WEB-INF/
web.xml
org.xml.sax.SAXParseException; systemId: jndi:/localhost/web1/WEB-INF/web.xml; l
ineNumber: 17; columnNumber: 21; Error at (17, 21: Invalid <url-pattern> login.d
o in servlet mapping

第17行, 21列: 非法的<url-pattern>

热点排行