ssh框架配置了事务启动tomcat就报错
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ManageBIZ' defined in file [C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.59\webapps\schoolhouse\WEB-INF\classes\com\biz\ManageBIZ.class]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) 展开
从这行SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener可以看出Spring在初始化容器的时候出错了!
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ManageBIZ' 这行说了是创建bean出错,而这个bean是Spring 的jar包里面的,不是自定义的类。
这行Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type初始化这个类的时候出现类没有发现或定义异常
.可以考虑的解决方法:
你引用的jar包缺少了!这个链接http://blog.csdn.net/apple90/article/details/2968658说需要引用一个hibernate lib目录下的asm.jar.