当前位置: 代码迷 >> Eclipse >> MyEclipse6.5 装配注意
  详细解决方案

MyEclipse6.5 装配注意

热度:35   发布时间:2016-04-23 01:56:21.0
MyEclipse6.5 安装注意
要把spring2.5aop 包中的asm2.2.3删除,不然抛
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'txManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [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
错误

删除后然后关闭myeclipse6.5,重新开即可,不然tomcat部署的时候会出错误

要删除 xerces-2.6.*.jar  和 xml-apis.jar