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

org.xml.sax.SAXParseException: Premature end of file 异常

2012-08-26 
org.xml.sax.SAXParseException: Premature end of file 错误?2012-5-7 19:07:24 org.apache.catalina.cor

org.xml.sax.SAXParseException: Premature end of file 错误

?

2012-5-7 19:07:24 org.apache.catalina.core.AprLifecycleListener init信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Java\jdk1.6.0_16\bin;D:\Tomcat 6.0\bin2012-5-7 19:07:24 org.apache.coyote.http11.Http11Protocol init信息: Initializing Coyote HTTP/1.1 on http-80802012-5-7 19:07:24 org.apache.catalina.startup.Catalina load信息: Initialization processed in 688 ms2012-5-7 19:07:24 org.apache.catalina.core.StandardService start信息: Starting service Catalina2012-5-7 19:07:24 org.apache.catalina.core.StandardEngine start信息: Starting Servlet Engine: Apache Tomcat/6.0.202012-5-7 19:07:24 org.apache.tomcat.util.digester.Digester fatalError严重: Parse Fatal Error at line 1 column 1: Premature end of file.org.xml.sax.SAXParseException: Premature end of file.    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)    at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1059)    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:1628)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:941)    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)    at org.apache.catalina.core.StandardService.start(StandardService.java:516)    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)    at org.apache.catalina.startup.Catalina.start(Catalina.java:583)    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:288)    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2012-5-7 19:07:24 org.apache.catalina.startup.HostConfig deployDirectory严重: Error deploying web application directory oatestorg.xml.sax.SAXParseException: Premature end of file.    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231)    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)    at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1628)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:941)    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)    at org.apache.catalina.core.StandardService.start(StandardService.java:516)    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)    at org.apache.catalina.startup.Catalina.start(Catalina.java:583)    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:288)    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2012-5-7 19:07:24 org.apache.coyote.http11.Http11Protocol start信息: Starting Coyote HTTP/1.1 on http-80802012-5-7 19:07:24 org.apache.jk.common.ChannelSocket init信息: JK: ajp13 listening on /0.0.0.0:80092012-5-7 19:07:24 org.apache.jk.server.JkMain start信息: Jk running ID=0 time=0/51  config=null2012-5-7 19:07:24 org.apache.catalina.startup.Catalina start信息: Server startup in 238 ms

?项目之前没有错误,很久没有弄她之后,后来去部署发现出现这个错误,原因是:META-INF下有空文件context.xml

?

删除就可以了

热点排行