2013-10-16 6 views
5

In ATG 10.2 si è verificato un problema durante l'esecuzione dell'applicazione Motorprise su JBOSS e utilizzando MySQLServer.Impossibile connettersi all'origine dati a causa di 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) 

risposta

5

JBoss per default assume piloti XA e non supporta chiamare più risorse non XA all'interno della stessa transazione. Per consentire a più risorse non XA in JBoss, aggiungere la proprietà com.arjuna.ats.jta.allowMultipleLastResources al file jbossjta-properties.xml, sotto la <property depends="arjuna" name="jta"> tag:

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

Si può ancora vedere le avvertenze nel file di log , ma le applicazioni ATG funzioneranno correttamente. Per sopprimere questi avvertimenti, aggiungere il seguente al file jboss-log4j.xml:

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

questo era il caso in ATG 9.3 e presumo vale ancora. Un altro rapido riferimento alla causa è here

+0

Thank you.I provato con l'impostazione di proprietà in JBoss file.but sto ottenendo lo stesso error.I Non so perché stessa cosa funziona correttamente in weblogic. – user2879266

+0

Ancora un problema? Hai accettato la risposta, quindi sono confuso. – radimpe

0

Io ad affrontare lo stesso problema. Risolto modificando il file server \ ATGPublishing \ conf \ jbossts-properties.xml.

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

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

+0

Non sei sicuro di come questa risposta aggiunga più della risposta accettata sopra di essa. – radimpe