解释一下:我的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(不多不少那种)只有这样慢慢找了。