如何调试Tomcat LifecycleException

时间:2018-11-29 06:48:21

标签: tomcat tomcat8

我正在构建新服务器,并尝试在Tomcat 8上运行现有应用程序

当我尝试启动tomcat时,我退出catalina.out

我只是得到了这个通用异常。

我正在寻找如何提高日志记录级别或其他有关如何获得更好的调试信息catalina.out(例外的顶层)的建议

  

2018年11月9日01:39:48.261严重[localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild:开始:    org.apache.catalina.LifecycleException:无法启动组件[StandardEngine [Catalina] .StandardHost [localhost] .StandardContext []]       在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)       在org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)       在org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)       在org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)       在org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:596)       在org.apache.catalina.startup.HostConfig $ DeployDescriptor.run(HostConfig.java:1805)       在java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)       在java.util.concurrent.FutureTask.run(FutureTask.java:266)       在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)       在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)       在java.lang.Thread.run(Thread.java:745)

这是例外的另一部分

  

2018年11月9日01:39:48.266严重[localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor部署配置描述符/opt/java/apache-tomcat-8.5.6/conf时出错/Catalina/localhost/ROOT.xml    java.lang.IllegalStateException:ContainerBase.addChild:开始:org.apache.catalina.LifecycleException:无法启动组件[StandardEngine [Catalina] .StandardHost [localhost] .StandardContext []]       在org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:728)       在org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)       在org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)       在org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:596)       在org.apache.catalina.startup.HostConfig $ DeployDescriptor.run(HostConfig.java:1805)       在java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)       在java.util.concurrent.FutureTask.run(FutureTask.java:266)       在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)       在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)       在java.lang.Thread.run(Thread.java:745)

谢谢

0 个答案:

没有答案