我是靠谱客的博主 发嗲小蜜蜂,最近开发中收集的这篇文章主要介绍spring+hibernate整合时tomcat启动的一个错误(严重: Exception sending context initialized event to listener instance of class org.springframewo,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
spring+hibernate整合时tomcat启动的一个错误
2009-7-13 12:25:51
org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:/Program Files/ Java/jdk1.6.0_06/bin;D:/Apache Software Foundation/Apache Tomcat 6.0.18/bin
2009-7-13 12:25:51 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2009-7-13 12:25:51 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 549 ms
2009-7-13 12:25:51 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-7-13 12:25:51 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.18
log4j:WARN No appenders could be found for logger ( org. springframework. util.ClassUtils).
log4j:WARN Please initialize the log4j system properly.
2009-7-13 12:25:52 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2009-7-13 12:25:52 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.makeAccessible(Ljava/lang/reflect/Constructor;)V
at org. springframework.beans.BeanUtils.instantiateClass(BeanUtils. java:95)
at org. springframework.beans.BeanUtils.instantiateClass(BeanUtils. java:74)
at org. springframework. web. context.ContextLoader.createWebApplicationContext(ContextLoader. java:249)
at org. springframework. web. context.ContextLoader.initWebApplicationContext(ContextLoader. java:199)
at org. springframework. web. context. ContextLoaderListener.contextInitialized( ContextLoaderListener. java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext. java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext. java:4342)
at org.apache.catalina.core.ContainerBase.start(ContainerBase. java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost. java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase. java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine. java:443)
at org.apache.catalina.core.StandardService.start(StandardService. java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer. java:710)
at org.apache.catalina.startup.Catalina.start(Catalina. java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:25)
at java. lang.reflect.Method.invoke(Method. java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap. java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap. java:413)
2009-7-13 12:25:52 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2009-7-13 12:25:52 org.apache.catalina.core.StandardContext start
严重: Context [/ssh] startup failed due to previous errors
2009-7-13 12:25:52 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2009-7-13 12:25:52 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2009-7-13 12:25:52 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2009-7-13 12:25:53 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2009-7-13 12:25:53 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2009-7-13 12:25:53 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/47 config=null
2009-7-13 12:25:53 org.apache.catalina.startup.Catalina start
信息: Server startup in 1984 ms
仔细检查是由于有两个包asm2.0.3.jar和asm.jar以及有spring-core.jar和spring-2.0.5core.jar,包冲突,删除asm2.0.3.jar和spring-2.0.5core.jar后重新启动正常
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:/Program Files/ Java/jdk1.6.0_06/bin;D:/Apache Software Foundation/Apache Tomcat 6.0.18/bin
2009-7-13 12:25:51 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2009-7-13 12:25:51 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 549 ms
2009-7-13 12:25:51 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-7-13 12:25:51 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.18
log4j:WARN No appenders could be found for logger ( org. springframework. util.ClassUtils).
log4j:WARN Please initialize the log4j system properly.
2009-7-13 12:25:52 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2009-7-13 12:25:52 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.makeAccessible(Ljava/lang/reflect/Constructor;)V
at org. springframework.beans.BeanUtils.instantiateClass(BeanUtils. java:95)
at org. springframework.beans.BeanUtils.instantiateClass(BeanUtils. java:74)
at org. springframework. web. context.ContextLoader.createWebApplicationContext(ContextLoader. java:249)
at org. springframework. web. context.ContextLoader.initWebApplicationContext(ContextLoader. java:199)
at org. springframework. web. context. ContextLoaderListener.contextInitialized( ContextLoaderListener. java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext. java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext. java:4342)
at org.apache.catalina.core.ContainerBase.start(ContainerBase. java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost. java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase. java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine. java:443)
at org.apache.catalina.core.StandardService.start(StandardService. java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer. java:710)
at org.apache.catalina.startup.Catalina.start(Catalina. java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:25)
at java. lang.reflect.Method.invoke(Method. java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap. java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap. java:413)
2009-7-13 12:25:52 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2009-7-13 12:25:52 org.apache.catalina.core.StandardContext start
严重: Context [/ssh] startup failed due to previous errors
2009-7-13 12:25:52 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2009-7-13 12:25:52 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2009-7-13 12:25:52 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2009-7-13 12:25:53 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2009-7-13 12:25:53 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2009-7-13 12:25:53 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/47 config=null
2009-7-13 12:25:53 org.apache.catalina.startup.Catalina start
信息: Server startup in 1984 ms
仔细检查是由于有两个包asm2.0.3.jar和asm.jar以及有spring-core.jar和spring-2.0.5core.jar,包冲突,删除asm2.0.3.jar和spring-2.0.5core.jar后重新启动正常
原文引用地址:
http://lufeng4321.javaeye.com/blog/424730
最后
以上就是发嗲小蜜蜂为你收集整理的spring+hibernate整合时tomcat启动的一个错误(严重: Exception sending context initialized event to listener instance of class org.springframewo的全部内容,希望文章能够帮你解决spring+hibernate整合时tomcat启动的一个错误(严重: Exception sending context initialized event to listener instance of class org.springframewo所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复