Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.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 由于SQLException,无法连接到数据源_Jboss_Atg - Fatal编程技术网

Jboss 由于SQLException,无法连接到数据源

Jboss 由于SQLException,无法连接到数据源,jboss,atg,Jboss,Atg,在atg10.2中,在JBOSS上运行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.Neste

atg10.2
中,在JBOSS上运行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)
无法连接到数据源,因为SQLException:无法在输入元感知对象时登记到事务中!;
容器:atg.repository.RepositoryException;来源:org.jboss.util.NestedSQLException:在输入元感知对象时无法登记到事务中!;-嵌套throwable:(javax.transaction.SystemException:java.lang.throwable:无法登记资源,请参阅前面的警告。tx=TransactionImple);-嵌套throwable:(org.jboss.resource.JBossResourceException:在输入元感知对象时无法在事务中登记!;-嵌套throwable:(javax.transaction.SystemException:java.lang.throwable:无法登记资源,请参阅前面的警告。tx=TransactionImple)
位于atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:8347)

JBoss默认采用XA驱动程序,不支持在同一事务中调用多个非XA资源。要在JBoss中启用多个非XA资源,请将属性com.arjuna.ats.jta.allowMultipleLastResources添加到
jbossjta properties.xml
文件的
标记下:

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


这是一个案例,我认为仍然成立。另一个快速提及原因的例子是我面临同样的问题。通过修改我的服务器\ATGPublishing\conf\jbossts-properties.xml文件解决了此问题

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


礼貌:

谢谢。我尝试在jboss文件中设置属性。但是我得到了相同的错误。我不确定为什么同样的事情在weblogic中正常工作。不确定这个答案如何添加超过其上方接受答案的内容。如果没有其他内容,它使用适用于jboss 5.1.2的文件名
jbossts properties.xml
,而那里不存在
jbossjta properties.xml