启动tomcat项目报错

今天使用jenkins打完maven项目war包后,运行抛出莫名的错误,因为在eclipse启动一切正常。
错误如下:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/soft/apache-tomcat-6-cement-bi/webapps/cem
ent-bi/WEB-INF/lib/activemq-all-5.8.0.jar!/org/slf4j/impl/StaticLoggerBinder.cla
ss]
SLF4J: Found binding in [jar:file:/C:/soft/apache-tomcat-6-cement-bi/webapps/cem
ent-bi/WEB-INF/lib/slf4j-log4j12-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.cl
ass]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2013-06-21 14:34:17,325 INFO  ContextLoader:272 - Root WebApplicationContext: in
itialization started
2013-06-21 14:34:17,418 INFO  XmlWebApplicationContext:456 - Refreshing Root Web
ApplicationContext: startup date [Fri Jun 21 14:34:17 CST 2013]; root of context
 hierarchy
2013-06-21 14:34:17,512 ERROR ContextLoader:312 - Context initialization failed
java.lang.NoSuchMethodError: org.springframework.context.support.AbstractRefresh
ableConfigApplicationContext.getEnvironment()Lorg/springframework/core/env/Confi
gurableEnvironment;
        at org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.getEnvironment(AbstractRefreshableWebApplicationContext.java:162)
        at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:87)
        at org.springframework.context.support.AbstractRefreshableApplicationCon
text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
        at org.springframework.context.support.AbstractApplicationContext.obtain
FreshBeanFactory(AbstractApplicationContext.java:467)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:397)
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebA
pplicationContext(ContextLoader.java:383)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:283)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:112)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
9)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1079)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:1002)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
25)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2013-6-21 14:34:17 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2013-6-21 14:34:17 org.apache.catalina.core.StandardContext start
严重: Context [/cement-bi] startup failed due to previous errors
2013-06-21 14:34:17,543 INFO  XmlWebApplicationContext:1002 - Closing Root WebAp
plicationContext: startup date [Fri Jun 21 14:34:17 CST 2013]; root of context h
ierarchy
2013-06-21 14:34:17,543 WARN  XmlWebApplicationContext:1010 - Exception thrown f
rom ApplicationListener handling ContextClosedEvent
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - c
all 'refresh' before multicasting events via the context: Root WebApplicationCon
text: startup date [Fri Jun 21 14:34:17 CST 2013]; root of context hierarchy
        at org.springframework.context.support.AbstractApplicationContext.getApp
licationEventMulticaster(AbstractApplicationContext.java:316)
        at org.springframework.context.support.AbstractApplicationContext.publis
hEvent(AbstractApplicationContext.java:303)
        at org.springframework.context.support.AbstractApplicationContext.doClos
e(AbstractApplicationContext.java:1007)
        at org.springframework.context.support.AbstractApplicationContext.close(
AbstractApplicationContext.java:970)
        at org.springframework.web.context.ContextLoader.closeWebApplicationCont
ext(ContextLoader.java:549)
        at org.springframework.web.context.ContextLoaderListener.contextDestroye
d(ContextLoaderListener.java:143)
        at org.apache.catalina.core.StandardContext.listenerStop(StandardContext
.java:4245)
        at org.apache.catalina.core.StandardContext.stop(StandardContext.java:48
86)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
750)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
9)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1079)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:1002)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
25)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2013-06-21 14:34:17,543 WARN  XmlWebApplicationContext:1018 - Exception thrown f
rom LifecycleProcessor on context close
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refr
esh' before invoking lifecycle methods via the context: Root WebApplicationConte
xt: startup date [Fri Jun 21 14:34:17 CST 2013]; root of context hierarchy
        at org.springframework.context.support.AbstractApplicationContext.getLif
ecycleProcessor(AbstractApplicationContext.java:329)
        at org.springframework.context.support.AbstractApplicationContext.doClos
e(AbstractApplicationContext.java:1015)
        at org.springframework.context.support.AbstractApplicationContext.close(
AbstractApplicationContext.java:970)
        at org.springframework.web.context.ContextLoader.closeWebApplicationCont
ext(ContextLoader.java:549)
        at org.springframework.web.context.ContextLoaderListener.contextDestroye
d(ContextLoaderListener.java:143)
        at org.apache.catalina.core.StandardContext.listenerStop(StandardContext
.java:4245)
        at org.apache.catalina.core.StandardContext.stop(StandardContext.java:48
86)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
750)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
9)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1079)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:1002)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
25)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2013-6-21 14:34:17 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2013-6-21 14:34:17 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory examples
2013-6-21 14:34:17 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2013-6-21 14:34:17 org.apache.coyote.http11.Http11AprProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2013-6-21 14:34:17 org.apache.coyote.ajp.AjpAprProtocol start
信息: Starting Coyote AJP/1.3 on ajp-8009
2013-6-21 14:34:17 org.apache.catalina.startup.Catalina start
信息: Server startup in 1953 ms

你可能感兴趣的:(Web,tomat)