首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

关于ssh集成 启动tomcat时报错解决思路

2013-09-11 
关于ssh集成 启动tomcat时报错解释一下:我的Action继承自己写的一个抽象类org.springframework.beans.fact

关于ssh集成 启动tomcat时报错
解释一下:我的Action继承自己写的一个抽象类
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contactServices' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contactServices' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.Type.........................
信息: Set web app root system property: 'webapp.root' = [C:\Program Files\Apache\Tomcat 7.0\webapps\JqGridStudent\]
2012-4-9 16:38:42 org.apache.catalina.core.ApplicationContext log
信息: Initializing log4j from [C:\Program Files\Apache\Tomcat 7.0\webapps\JqGridStudent\WEB-INF\classes\log4j.properties]
2012-4-9 16:38:42 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
2012-4-9 16:38:42 org.apache.catalina.core.StandardContext startInternal
严重: Context [/JqGridStudent] startup failed due to previous errors
2012-4-9 16:38:42 org.apache.catalina.core.ApplicationContext log
信息: Shutting down log4j
2012-4-9 16:38:42 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2012-4-9 16:38:42 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/JqGridStudent] registered the JBDC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

[解决办法]
java.lang.NoClassDefFoundError: org/objectweb/asm/Type
配置文件里的contactServices对应的类没有找到。

[解决办法]
asm是不是这个jar包冲突或者没有加进来啊?
[解决办法]
缺少Jar包 org/objectweb/asm/Type

在spring包下找asm包,添加进去再启动,可能还会缺少其他包,如果启动成功就好了,如果没有成功就继续找呗。
[解决办法]
缺少jar包了,自己去google搜索 org/objectweb/asm/Type 应该就会有对应的jar提示,自己整合要想要完美jar(不多不少那种)只有这样慢慢找了。

热点排行