我收到此错误:
Error creating bean with name 'wsJtaTm' defined in ServletContext resource [/WEB-INF/applicationContext.xml]:
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class
[org.springframework.transaction.jta.JotmFactoryBean]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: stub class initialization failed
我正在使用以下代码txnmanager
为 Jboss 数据源和 JNDI 正确加载和配置创建 bean。
应用程序上下文.xml
<bean id="wsJtaTm" class="org.springframework.transaction.jta.JotmFactoryBean" />
<bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">
<property name="userTransaction" ref="wsJtaTm" />
</bean>
我的代码有什么问题?