5

ATG 10.2JBOSS 上运行 Motorprise 应用程序和使用 MySQLServer 时遇到一些问题。

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)
4

2 回答 2

5

JBoss 默认采用 XA 驱动程序,不支持在同一个事务中调用多个非 XA 资源。要在 JBoss 中启用多个非 XA 资源,请将属性com.arjuna.ats.jta.allowMultipleLastResources添加到jbossjta-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

于 2013-10-21T13:43:24.537 回答
0

我要面对同样的问题。通过修改我的 server\ATGPublishing\conf\jbossts-properties.xml 文件来解决它。

<properties depends="arjuna" name="jta">
<!--  SNIPPED FOR BREVITY -->
<property name="com.arjuna.ats.jta.allowMultipleLastResources" value="true" />
</properties>

礼貌:http ://branchbird.com/blog/the-atg-endeca-integration-part-2-loading-your-mdex/

于 2014-07-30T07:41:21.610 回答