标签:
转载,原文地址 http://hw1287789687.iteye.com/blog/1817865
org.apache.catalina.core.ContainerBase addChildInternal
严重: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:142)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5274)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more
仔细看异常抛出过程就会发现,一定是与Spring有关系,当前我使用的Spring版本为3.1.0.M2,又是一顿折腾,半天又过去了,最后解决问题的还是google,看来以后有问题还是直接google的好,不要指望其它了,不过或许我写了这个记录后,可以有其它选择了。
原来这是spring的一个BUG吧,可去https://jira.springsource.org/browse/SPR-8496查看一下,当前需要做的就是更新Spring到新的版本应该就可以了,于是到官网下载Spring3.2.0.RELEASE版本,等待。。。(下载中)
下载后,包结构有一点点变化,对比后更新相应的jar包,再次启动tomcat7,一切正常!!!
去spring官网看更新日志,发现确实移除了,将asm整合到core里面了
inlined ASM into spring-core, removed spring-asm subproject and jar
转载 tomcat6下项目移植到tomcat7下出问题的解决办法
标签:
原文地址:http://www.cnblogs.com/snower/p/4312925.html