问题描述
2011-8-28 14:17:25 org.apache.catalina.core.StandardContext filterStart严重: Exception starting filter struts2java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitorat org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:376)at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:334)at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:215)at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4725)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)at org.apache.catalina.core.StandardService.start(StandardService.java:525)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(DelegatingMethodAccessorImpl.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)Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitorat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)... 36 more2011-8-28 14:17:26 org.apache.catalina.core.StandardContext start严重: Error filterStart2011-8-28 14:17:26 org.apache.catalina.core.StandardContext start严重: Context [/FoShanGongAn] startup failed due to previous errors2011-8-28 14:17:26 org.apache.catalina.core.ApplicationContext log信息: Closing Spring root WebApplicationContext2011-8-28 14:17:26 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc严重: The web application [/FoShanGongAn] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.2011-8-28 14:17:26 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc严重: The web application [/FoShanGongAn] registered the JDBC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.2011-8-28 14:17:26 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads严重: The web application [/FoShanGongAn] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.2011-8-28 14:17:26 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap严重: The web application [/FoShanGongAn] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@45478]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@45b424]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.2011-8-28 14:17:26 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap严重: The web application [/FoShanGongAn] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@35bd2a]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@163468]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.2011-8-28 14:17:27 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory ROOT2011-8-28 14:17:27 org.apache.coyote.http11.Http11Protocol start信息: Starting Coyote HTTP/1.1 on http-80802011-8-28 14:17:28 org.apache.jk.common.ChannelSocket init信息: JK: ajp13 listening on /0.0.0.0:80092011-8-28 14:17:28 org.apache.jk.server.JkMain start信息: Jk running ID=0 time=0/30 config=null2011-8-28 14:17:28 org.apache.catalina.startup.Catalina start信息: Server startup in 11137 ms 问题补充:up2pu 写道
解决方案
你这个根本没有asm的包啊 缺少这个包。
解决方案二:
估计hibernate3.6已经把这个包并入自己的包了。要不我把我的包发给你吧。
解决方案三:
反正原因就是你的包冲突SpringAOP Liberaries里的asm2.2.3.jar和Hiberate中的生成代理用的asm.jar冲突把asm2.2.3.jar , asm-util-2.2.3.jar, asm-commons-2.2.3.jar 这三个包删除就可以了。。。 你试试。
解决方案四:
缺少asm*.jar或者冲突导致的,试试下面的方式,其中asm*.jar有多个1.去掉类路径上的关于Hibernate的asm*.jar和cglib*.jar2.加入Spring中的asm*.jar和cglib*.jar
解决方案五:
asm的包不兼容 你看一下asm的jar包是不是有两个删除asm-2.2.3.jar 然后重启。