- 浏览: 3838 次
- 性别:
- 来自: 北京
最新评论
今天使用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
相关推荐
在Eclipse中部署Tomcat服务器时,需要正确地配置Tomcat服务器,清除Tomcat服务器的缓存,添加项目路径到Tomcat服务器的配置文件中,并启动Tomcat服务器。按照这些步骤进行,可以确保在Eclipse中部署Tomcat服务器时...
**重启服务器**:重新启动Tomcat服务器验证问题是否得到解决。 2. **调整类加载器配置** - **原因分析**:类加载器配置不当也可能导致此类问题。默认情况下,Tomcat会采用“双亲委派模型”,这意味着某些类会被...
解决Idea导入SSM项目启动Tomcat报错404的问题 本文旨在解决Idea中导入SSM项目启动Tomcat时报错404的问题,提供了一种有效的解决方案。该方案通过在pom文件中添加特定的配置信息,解决了Idea无法识别Tomcat和JDK的...
在myeclipse中点击window→preference→在搜索框中输入Tomcat→选择安装的tomcat版本,我这里是选择Tomcat 7.x→点击JDK→在Tomcat 7.x JDK ...中选择在本机中安装的jdk版本→点击OK然后再次启动tomcat就不会报错了...
删除这个目录下的所有内容,然后重新启动Tomcat,让其重新创建和展开WAR文件。 3. **验证JDK版本**:确保使用的Java开发工具包(JDK)版本与Tomcat兼容。不同版本的JDK对ZIP文件的处理可能会有所不同,升级或降级...
Java web项目启动Tomcat报错解决方案 Java web项目启动Tomcat报错解决方案是Java web开发中常见的问题之一。当用户在 Eclipse 或其他 IDE 中启动 Tomcat 服务器时,可能会遇到 "A Java Exception has occurred" 的...
注意:在访问项目之前,需要先手动启动 Tomcat 的 startup.bat,以确保项目的端口正确以及项目是否报错。 本文详细介绍了如何在 Server 2008 环境下配置 Tomcat 的后台启动,以便在系统启动时自动启动 Tomcat 服务...
完成上述配置后,重新启动Tomcat,如果应用依然无法正常启动,更详细的日志信息将有助于我们找出问题所在。在本例中,问题的根源在于mapper文件有误。Mapper文件通常用于ORM框架如MyBatis,负责映射SQL查询到Java...
### Spring Boot项目导出WAR包并部署到Tomcat遇到404错误的解析与解决方案 在实际开发过程中,经常会遇到将Spring Boot应用打包为WAR格式并部署至Tomcat服务器的需求。这种方式可以更好地与传统Java Web项目的部署...
tomcat window、linux启动脚本
首先,当我们在启动Tomcat时看到“严重”级别的错误,这通常表示有关键性的错误导致应用无法正常启动或运行。在Struts2框架中,这类错误可能源于以下几点: 1. **依赖库冲突**:Struts2依赖于许多第三方库,如...
本文将深入探讨在启动Tomcat 5.5过程中可能遇到的问题及其解决方案,帮助开发者顺利运行其Web应用。 ### Tomcat 5.5启动报错原因分析 #### 1. 配置文件问题 在Tomcat 5.5中,`C:\tomcat5\conf\Catalina\localhost`...
5. **测试编译结果**:编译完成后,你可以启动新构建的Tomcat实例,进行测试以确保一切正常。 在编译过程中可能会遇到各种问题,如依赖库找不到、版本不兼容等,这时需要根据错误信息进行排查,可能需要更新相关库...
该部署项目可直接引入IDE,但是由于电脑环境的问题,VersionLoggerListener有可能存在启动乱码。可以通过配置-Dfile.encoding=UTF8 -Duser.language=en -Duser.region=US这样的启动参数解决乱码问题。
Tomcat报错Unsupported major.minor version xxx的解决方法 一、问题背景 在Java开发过程中,我们经常会遇到Tomcat报错Unsupported major.minor version xxx的问题。这是因为编译的JDK版本和运行时所用的JDK版本不...
### Eclipse导入已有项目后项目报错的解决办法 在日常软件开发过程中,使用Eclipse导入已存在的项目时常会遇到各种各样的错误提示,这不仅会影响工作效率,还可能导致开发者感到困惑和沮丧。本文将针对“Eclipse...
在这个过程中,可能会遇到各种问题,本文将详细解析如何在Windows系统中部署Tomcat项目,并着重解决两个常见问题:数据库不一致和部署后直接访问报错。 首先,我们需要确保已正确安装和配置了Apache Tomcat。可以从...
在使用MyBatisPlus进行开发时,自动生成代码可以极大地提高开发效率,但有时在将新生成的代码引入项目并尝试在Tomcat服务器上运行时,可能会遇到报错的情况。这种问题通常是由于MyBatisPlus生成的代码与现有的配置、...
在弹出的窗口中,选择之前配置的Tomcat服务器,如果未启动,会提示启动。点击“Finish”,STS将部署项目到Tomcat,并在浏览器中打开默认的欢迎页面。 要进行调试,需要在HelloWorldServlet的doGet方法上设置断点。...