Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在JBOSS EAP 6.3上使用Spring 2.5.6创建transactionManager(JTA)bean_Spring_Jta_Jboss6.x_Spring Transactions_Transactionmanager - Fatal编程技术网

无法在JBOSS EAP 6.3上使用Spring 2.5.6创建transactionManager(JTA)bean

无法在JBOSS EAP 6.3上使用Spring 2.5.6创建transactionManager(JTA)bean,spring,jta,jboss6.x,spring-transactions,transactionmanager,Spring,Jta,Jboss6.x,Spring Transactions,Transactionmanager,我得到了这个错误: 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

我得到了这个错误:

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
我使用下面的代码为Jboss创建
txnmanager
bean 正确加载和配置数据源和JNDI

applicationcontext.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>

我的代码有什么问题