当前位置: 代码迷 >> J2EE >> 一下是java程序运行时出错,不知道是XML出错。找不到,也修改了好多还是如此!解决方法
  详细解决方案

一下是java程序运行时出错,不知道是XML出错。找不到,也修改了好多还是如此!解决方法

热度:93   发布时间:2016-04-22 01:26:06.0
一下是java程序运行时出错,不知道是XML出错。找不到,也修改了好多还是如此!???
2012-5-17   18:10:59   org.apache.tomcat.util.digester.Digester   fatalError
严重:   Parse   Fatal   Error   at   line   212   column   17:   Element   type   "Contextpath "   must   be   followed   by   either   attribute   specifications,   "> "   or   "/> ".
org.xml.sax.SAXParseException:   Element   type   "Contextpath "   must   be   followed   by   either   attribute   specifications,   "> "   or   "/> ".
at   com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown   Source)
at   com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown   Source)
at   com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown   Source)
at   com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown   Source)
at   com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown   Source)
at   com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown   Source)
at   com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown   Source)
at   com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown   Source)
at   com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown   Source)
at   com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown   Source)
at   com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown   Source)
at   com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown   Source)
at   org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)
at   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown   Source)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown   Source)
at   java.lang.reflect.Method.invoke(Unknown   Source)
at   org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2012-5-17   18:11:02   org.apache.catalina.startup.Catalina   load
警告:   Catalina.start   using   conf/server.xml:  
org.xml.sax.SAXParseException:   Element   type   "Contextpath "   must   be   followed   by   either   attribute   specifications,   "> "   or   "/> ".
at   com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown   Source)
at   org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)
at   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown   Source)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown   Source)
at   java.lang.reflect.Method.invoke(Unknown   Source)
at   org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
  相关解决方案