2019独角兽企业重金招聘Python工程师标准>>>
文章原创地址:org.apache.catalina.LifecycleException: Failed to start component
今天来了个新同事,让他先熟悉一下我们的工程项目,从svn下载下来以后,配置完成却怎么都无法正常启动起来,并且报org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/platform]]的错误,为什么在我们的机子上执行正常,同样的配置在他的机子上却运行不起来呢,百度、Google了好久也没解决问题,最后才发现原来是Tomcat版本问题,真是气煞我也。
下面是问题报出的异常:
严重: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/platform]]at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677)at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1962)at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)at java.util.concurrent.FutureTask.run(Unknown Source)at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerExceptionat org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:142)at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5573)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)... 10 more三月 14, 2016 3:28:19 下午 org.apache.catalina.startup.HostConfig deployDescriptor
严重: Error deploying configuration descriptor D:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\platform.xml
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/platform]]at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677)at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1962)at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)at java.util.concurrent.FutureTask.run(Unknown Source)at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)at java.lang.Thread.run(Unknown Source)
原来是我们的项目太过古老了,不支持Tomcat的新版,只能使用Tomcat 6来进行启动。Tomcat的向下兼容性真差,我服气了。
文章原创地址:
org.apache.catalina.LifecycleException: Failed to start component