Tomcat8启动显示[ERROR]-上下文初始化失败

时间:2019-05-02 07:03:04

标签: tomcat

tomcat8服务器启动错误,错误信息如下

2019年5月2日14:43:08.387信息[main] org.apache.catalina.startup.VersionLoggerListener.log命令行参数:-Dcatalina.home = / usr / tomcat / apache-tomcat-8.5.40 2019年5月2日14:43:08.387信息[主] org.apache.catalina.startup.VersionLoggerListener.log命令行参数:-Djava.io.tmpdir = / usr / tomcat / apache-tomcat-8.5.40 / temp 2019年5月2日14:43:08.387信息[主要] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent在java.library.path上找不到基于APR的Apache Tomcat本机库,该库在生产环境中具有最佳性能: [/ usr / java / packages / lib / amd64:/ usr / lib64:/ lib64:/ lib:/ usr / lib] 2019年5月2日14:43:08.575信息[主] org.apache.coyote.AbstractProtocol.init初始化ProtocolHandler [“ http-nio-8080”] 2019年5月2日14:43:08.593信息[主] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector使用共享选择器进行servlet读写 2019年5月2日14:43:08.613信息[主] org.apache.coyote.AbstractProtocol.init初始化ProtocolHandler [“ ajp-nio-8009”] 2019年5月2日14:43:08.614信息[主] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector使用共享选择器进行servlet读写 2019年5月2日14:43:08.615信息[主] org.apache.catalina.startup.Catalina.load初始化在784毫秒内处理 2019年5月2日14:43:08.641信息[main] org.apache.catalina.core.StandardService.startInternal启动服务[Catalina] 2019年5月2日14:43:08.641信息[main] org.apache.catalina.core.StandardEngine.startInternal启动Servlet引擎:Apache Tomcat / 8.5.40 2019-05-02 14:45:22-[错误]-上下文初始化失败-org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:350) org.springframework.beans.factory.BeanDefinitionStoreException:IOException从文件[/usr/tomcat/apache-tomcat-8.5.40/webapps/TomProject/WEB-INF/classes/config/spring/springmvc-mybatis.xml]解析XML文档;嵌套的异常是java.net.ConnectException:连接超时(连接超时)         在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:410)         在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)         在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)         在org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)         在org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)         在org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)处         在org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)         在org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)         在org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)         在org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:614)         在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:515)         在org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)         在org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)         在org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)         在org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4770)         在org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5236)         在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)         在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1423)         在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1413)         在java.util.concurrent.FutureTask.run(FutureTask.java:266)         在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)         在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)         在java.lang.Thread.run(Thread.java:748) 由以下原因引起:java.net.ConnectException:连接超时(连接超时)         在java.net.PlainSocketImpl.socketConnect(本地方法)         在java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)         在java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)         在java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)         在java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)         在java.net.Socket.connect(Socket.java:589)         在java.net.Socket.connect(Socket.java:538)         在sun.net.NetworkClient.doConnect(NetworkClient.java:180)         在sun.net.www.http.HttpClient.openServer(HttpClient.java:463)         在sun.net.www.http.HttpClient.openServer(HttpClient.java:558)         在sun.net.www.http.HttpClient。(HttpClient.java:242)         在sun.net.www.http.HttpClient.New(HttpClient.java:339)         在sun.net.www.http.HttpClient.New(HttpClient.java:357)         在sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220)         在sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)         在sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)         在sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984)         在sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)         在sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)         在com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:647)         在com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1304)         在com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1270)         在com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:264)         在com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl $ DTDDriver.dispatch(XMLDocumentScannerImpl.java:1161)         在com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl $ DTDDriver.next(XMLDocumentScannerImpl.java:1045)         在com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl $ PrologDriver.next(XMLDocumentScannerImpl.java:959)         在com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)         在com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)         在com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)         在com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)         在com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)         在com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)         在com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)         在org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)         在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:429)         在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)         ...另外22个 02-May-2019 14:45:22.025严重[localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal一个或多个侦听器无法启动。有关详细信息,请参见相应的容器日志文件。 2019年5月2日14:45:22.031严重[localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context []由于先前的错误而启动失败 2019年5月2日14:45:22.048警告[localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads Web应用程序[ROOT]似乎已启动名为[FileWatchdog]的线程,但未能停止它。这很可能造成内存泄漏。线程的堆栈跟踪:  java.lang.Thread.sleep(本机方法)

0 个答案:

没有答案