问题描述
2015-1-512:53:10org.apache.catalina.core.AprLifecycleListenerinit信息:LoadedAPRbasedApacheTomcatNativelibrary1.1.32usingAPRversion1.5.1.2015-1-512:53:11org.apache.catalina.core.AprLifecycleListenerinit信息:APRcapabilities:IPv6[true],sendfile[true],acceptfilters[false],random[true].2015-1-512:53:11org.apache.catalina.core.AprLifecycleListenerinitializeSSL信息:OpenSSLsuccessfullyinitializedwithversionOpenSSL1.0.1j15Oct20142015-1-512:53:11org.apache.coyote.http11.Http11AprProtocolinit信息:InitializingCoyoteHTTP/1.1onhttp-80802015-1-512:53:11org.apache.coyote.ajp.AjpAprProtocolinit信息:InitializingCoyoteAJP/1.3onajp-80092015-1-512:53:11org.apache.catalina.startup.Catalinaload信息:Initializationprocessedin993ms2015-1-512:53:11org.apache.catalina.core.StandardServicestart信息:StartingserviceCatalina2015-1-512:53:11org.apache.catalina.core.StandardEnginestart信息:StartingServletEngine:ApacheTomcat/6.0.432015-1-512:53:11org.apache.catalina.startup.HostConfigdeployDescriptor信息:Deployingconfigurationdescriptorhost-manager.xml2015-1-512:53:12org.apache.catalina.startup.HostConfigdeployDescriptor信息:Deployingconfigurationdescriptormanager.xml2015-1-512:53:12org.apache.catalina.startup.HostConfigdeployDirectory信息:Deployingwebapplicationdirectoryday012015-1-512:53:12org.apache.catalina.startup.HostConfigdeployDirectory信息:Deployingwebapplicationdirectorydocs2015-1-512:53:12org.apache.catalina.startup.HostConfigdeployDirectory信息:Deployingwebapplicationdirectoryexamples2015-1-512:53:12org.apache.catalina.core.ApplicationContextlog信息:ContextListener:contextInitialized()2015-1-512:53:12org.apache.catalina.core.ApplicationContextlog信息:SessionListener:contextInitialized()2015-1-512:53:12org.apache.catalina.startup.HostConfigdeployDirectory信息:Deployingwebapplicationdirectoryfirst2015-1-512:53:12org.apache.tomcat.util.digester.DigesterfatalError严重:ParseFatalErroratline1column1:Contentisnotallowedinprolog.org.xml.sax.SAXParseException:Contentisnotallowedinprolog.atcom.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)atcom.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)atcom.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)atcom.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1038)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)atcom.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)atcom.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)atcom.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)atorg.apache.tomcat.util.digester.Digester.parse(Digester.java:1675)atorg.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)atorg.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1045)atorg.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:265)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4616)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:802)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:583)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1068)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:822)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)atorg.apache.catalina.core.StandardService.start(StandardService.java:525)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:759)atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2015-1-512:53:12org.apache.catalina.startup.ContextConfigapplicationWebConfig严重:Parseerrorinapplicationweb.xmlfileatjndi:/localhost/first/WEB-INF/web.xmlorg.xml.sax.SAXParseException:Contentisnotallowedinprolog.atcom.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)atcom.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)atcom.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)atcom.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1038)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)atcom.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)atcom.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)atcom.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)atorg.apache.tomcat.util.digester.Digester.parse(Digester.java:1675)atorg.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)atorg.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1045)atorg.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:265)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4616)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:802)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:583)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1068)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:822)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)atorg.apache.catalina.core.StandardService.start(StandardService.java:525)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:759)atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2015-1-512:53:12org.apache.catalina.startup.HostConfigdeployDirectory信息:Deployingwebapplicationdirectorygyu012015-1-512:53:12org.apache.catalina.startup.HostConfigdeployDirectory信息:DeployingwebapplicationdirectoryROOT2015-1-512:53:12org.apache.coyote.http11.Http11AprProtocolstart信息:StartingCoyoteHTTP/1.1onhttp-80802015-1-512:53:12org.apache.coyote.ajp.AjpAprProtocolstart信息:StartingCoyoteAJP/1.3onajp-80092015-1-512:53:12org.apache.catalina.startup.Catalinastart信息:Serverstartupin1103ms
解决方案
解决方案二:
web.xml内容有错误,或者是XML不合法,或者是文件版本不正确。
解决方案三:
参考
解决方案四:
严重:Parseerrorinapplicationweb.xmlfileatjndi:/localhost/first/WEB-INF/web.xmlweb.xml有问题