2013-10-16 81 views
5

無法連接到數據源在ATG 10.2中,在JBOSS上運行Motorprise應用程序並使用MySQLServer時遇到了一些問題。由於SQLException

Unable to connect to data source because of SQLException: Could not enlist in transaction on entering meta-aware object!; 
CONTAINER:atg.repository.RepositoryException; SOURCE:org.jboss.util.NestedSQLException:  Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a618a4b:d503:525e 
689c:1db status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicActi 
on: a618a4b:d503:525e689c:1db status: ActionStatus.ABORT_ONLY >)) 
    at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:8347) 

回答

5

JBoss在默認情況下假定XA驅動程序,並且不支持在同一事務中調用多個非XA資源。要啓用多個非XA資源在JBoss中,添加屬性com.arjuna.ats.jta.allowMultipleLastResourcesjbossjta-properties.xml文件時,<property depends="arjuna" name="jta">標籤下:

<property depends="arjuna" name="jta"> 
    <property name="com.arjuna.ats.jta.allowMultipleLastResources" value="true"/> 

您仍可能會看到你的日誌文件中警告,但ATG應用程序將正常運行。爲了抑制這些警告,添加以下到您的jboss-的log4j.xml文件:

<category name="com.arjuna.atg.jta.logging"> 
    <priority value="ERROR"/> 
</category> 

這是ATG 9.3的情況下,我認爲仍然是成立的。另一個原因的快速參考是here

+0

謝謝,我試圖用file.but我得到同樣的error.I在JBoss中設置屬性我不知道爲什麼同樣的事情在weblogic的正常工作。 – user2879266

+0

仍然是一個問題?你接受了答案,所以我很困惑。 – radimpe