Spring @Transactional,为什么会出现错误?

时间:2018-12-21 08:01:59

标签: spring jboss transactional

出现类似问题标题的错误。

奇点是由旧日蚀旧版本(火星〜氧气)局部驱动的

仅在eclipse jee 2018-09和2018-12版本中设置后才会出现此问题。

JBoss和其他库已在Maven中注册,文件似乎没有问题(它与Eclipse Mars正常工作)。

在本地工作时

登录使用@Transactional的零件

WARN: com.arjuna.ats.arjuna - ARJUNA012218: cant create new instance of {0}

... skip ...

Caused by: com.arjuna.ats.arjuna.exceptions.ObjectStoreException: ARJUNA012225: FileSystemStore :: setupStore - can not access root of object store: PutObjectStoreDirHere \ ShadowNoFileLockStore \ defaultStore \

发生上述错误。

web.xml中的“我的交易”设置

<tx: annotation-driven transaction-manager = "txm" />

<bean id = "jbossTxm" class = "com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple" />
<bean id = "jbossUtx" class = "com.arjuna.ats.internal.jta.transaction.arjunacore.UserTransactionImple" />

<bean id = "txm" class = "org.springframework.transaction.jta.JtaTransactionManager">
    <property name = "transactionManager" ref = "jbossTxm" />
    <property name = "userTransaction" ref = "jbossUtx" />
    <property name = "autodetectTransactionManager" value = "false" />
    <property name = "allowCustomIsolationLevels" value = "true" />
</ bean>

<bean id = "txpt" abstract = "true" class = "org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
    <property name = "transactionManager">
        <ref bean = "txm" />
    </ property>
</ bean>

类似于上面。

能告诉我上述错误的原因吗?

我需要在Eclipse配置中添加一些东西吗?

0 个答案:

没有答案