首页 > 代码库 > 严重: End event threw exception java.lang.IllegalArgumentException: Can't convert argument: null

严重: End event threw exception java.lang.IllegalArgumentException: Can't convert argument: null

堆栈信息:

2014-6-17 10:33:58 org.apache.tomcat.util.digester.Digester endElement严重: End event threw exceptionjava.lang.IllegalArgumentException: Can‘t convert argument: null    at org.apache.tomcat.util.IntrospectionUtils.convert(IntrospectionUtils.java:1005)    at org.apache.tomcat.util.digester.CallMethodRule.end(CallMethodRule.java:523)    at org.apache.tomcat.util.digester.Rule.end(Rule.java:229)    at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1138)    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1774)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)    at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)    at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)    at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1076)    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4612)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)    at org.apache.catalina.core.StandardService.start(StandardService.java:525)    at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2014-6-17 10:33:58 org.apache.catalina.startup.ContextConfig applicationWebConfig严重: Parse error in application web.xml file at jndi:/localhost/CommercialPressCms/WEB-INF/web.xmljava.lang.IllegalArgumentException: Can‘t convert argument: null

解决方案:

  由于在MyEclipse下重构JEE项目名时,MyEclipse自动更新了部署文件web.xml,重新生成了xml文件的头部声明,新增加了javaee的命名空间.

  去掉javaee命名空间即可。