添加<tx:annotation-driven> </tx:annotation-driven>时出现Jboss EAP 6.2启动错误

时间:2015-03-17 23:16:26

标签: mybatis spring-3 jboss-eap-6

我们正在使用以下技术堆栈:

JbossEAP 6.2 + Spring 3.2.4 + RestEasy 2.3.7 + MyBatis 3.1.1 + MyBatis-Spring 1.2.0。

我们计划使用declarativie事务,在applicationContext.xml文件中添加后,我们收到以下错误:

请告诉我们如何修复它。

引起:org.springframework.beans.NotWritablePropertyException:bean类的无效属性'transactionManagerBeanName'[org.springframework.transaction.interceptor.TransactionInterceptor]:Bean属性'transactionManagerBeanName'不可写或具有无效的setter方法。 setter的参数类型是否与getter的返回类型匹配?     在org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1042)[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]     在org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:902)[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]     在org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:75)[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]     在org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:57)[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1420)[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]     ......还有25个

注意:

我们正在使用以下听众:              org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap                   org.jboss.resteasy.plugins.spring.SpringContextLoaderListener     

1 个答案:

答案 0 :(得分:0)

抱歉,我误将spring-dao包括在内,将其移除并正常工作!