在配置ssh时,出现错误
严重: 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 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
spring 依赖 的 asm-2.2.3.jar,
hibernate所依赖的jar包 asm.jar 这两者jar包冲突了。。所以,给spring依赖的包给移调,给asm-2.2.3.jar 删掉,
注意在整合的时候,会存在两个commons-logging-1.0.4.jar
commons-logging.jar 日志文件,给其中国一个删掉就行。
经测试,ok 通过