struts2.3+hibernate3.6+spring3.1整合时候出现错误,各位帮忙一下啊~

问题描述

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 然后重启。

时间: 2024-12-28 06:40:07

struts2.3+hibernate3.6+spring3.1整合时候出现错误,各位帮忙一下啊~的相关文章

Struts2.1+Hibernate3.3+Spring3.0请高手帮帮忙

问题描述 我是个Java初学者,现在用Struts2.1+Hibernate3.3+Spring3.0出现如图所示的问题sessionFactory的配置如图:listener的配置如图:请高手们帮帮忙啊 解决方案 解决方案二:检查一下驱动jar,还有listeners在这里配置吗?解决方案三:有没少jar包?web.xml有没配下面的:<!--向监听器类中传递初始化参数,以获取BeanFactory对象(告诉spring到哪里去加载配置文件)--><context-param>&

Struts2.1.6+Spring2.5.6+Hibernate3.3.2+mysql整合+分页模板

Struts2.1.6+Spring2.5.6+Hibernate3.3.2+mysql整合+分页模板 博客分类:Java MySQLHibernateAOPSpringStruts  1.导入29个JAR包   JAR包名称 作用 Struts2.1.6(7个)   struts2-core-2.1.6.jar struts2开发的核心类库 freemarker-2.3.13.jar struts2的UI标签的模板使用freemarker编写 commons-logging-1.0.4.jar

在SSH(struts2.21+hibernate3.3.2+spring2.5)整合中遇到一个问题:

问题描述 在SSH(struts2.21+hibernate3.3.2+spring2.5)整合中遇到一个问题:菜鸟求解~~知道的大师们给个解决方案把~~~目的:在容器启动后,自动从数据库中读出数据然后在WEB的application范围内写入数据 ,这样在index.jsp,里只要直接读取application数据就行了,不每次都过action.(都是一些一般不变的数据.且数据不多)试验:1.在把Action设为单例后,容器启动后会自动运行,不能访问spring里的bean,及在构造方法里打印

spring和hibernate整合出错,请大神帮忙解决,谢谢

问题描述 spring和hibernate整合出错,请大神帮忙解决,谢谢 <!-- Hibernate和spring整合的配置 配置SessionFactory --> <!-- 指定hibernate的配置文件位置 --> <!-- 配置c3p0数据库连接池 --> <!--通过反射设置set方法--> <!-- 数据连接信息 --> <!-- 其他配置 --> <!-- 初始化时获取三个连接,取值应在minPoolSize与

springmvc+hbrat整合出现这个错误,求大神帮帮忙

问题描述 springmvc+hbrat整合出现这个错误,求大神帮帮忙 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoBase' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'hibernateTemplate' while s

javaweb 三大...-三大框架整合时出现错误。

问题描述 三大框架整合时出现错误. 整合时出现. No bean named "" is defind. 拜托大家的图图i 解决方案 没有找到name为某某的bean.1没有注入spring2name写错了 解决方案二: 检查下spring的配置文件中,有没有bean定义的name属性为空串的 .不介意的话贴出来帮你查查. 解决方案三: 你用的是自动注入的还是手动配置的注入的?1.自动注入,你看看你的注解是否有问题.2.手动注入,你看看你的bean id 值是否正确,应用该bean的地

maven intellij-mybatis+spring mvc整合出的错误!

问题描述 mybatis+spring mvc整合出的错误! 10C 在myeclipse中的配置文件转到intellij用maven创建web项目就出现下面的异常.UserMapper.xml中的方法和UserMapper.java中的一样.改用原生JDBC连接没问题,就是不知道是什么错,请大神帮忙解答.在myeclipse中都没问题的,改maven就不行了,纳闷了. type Exception report message Request processing failed; nested

javaweb-求大神,Hibernate与Spring整合报如下错误

问题描述 求大神,Hibernate与Spring整合报如下错误 2015-1-8 15:45:14 org.springframework.context.support.AbstractApplicationContext prepareRefresh 信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@10849bc: display name [org.springframew

各位大侠,小弟ssh(struts2.2.1+hibernate3.6+spring3.5)整合出现的问题

问题描述 java.lang.NoClassDefFoundError:javax/faces/webapp/FacesServlet 严重:ErrordeployingwebapplicationdirectorySearchIndexjava.lang.NoClassDefFoundError:javax/faces/webapp/FacesServletatcom.sun.faces.config.FacesInitializer.<clinit>(FacesInitializer.ja