java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.makeAccess

信息: 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后重新启动正常

你可能感兴趣的:(java,apache,spring,tomcat,log4j)