Jboss use JTS instead of JTA

巧了我就是萌 提交于 2020-03-05 01:34:27

问题


I have jacorb subsystem enabled in my jboss. But JTS is not enabled, I use only JTA.

When an EJB remote call received by the jboss, instead of using JTA(com.arjuna.ats.internal.jta.transaction.arjunacore.jca.TransactionImporterImple) it gets JTS(com.arjuna.ats.internal.jta.transaction.jts.jca.TransactionImporterImple) and proceed with JTS. Since JTS is not enabled it failed with ORB is not initialized error. Can you please help me to identify why JTS is used instead of JTA.

JBAS014134: EJB Invocation failed on component TestBean for method public abstract java.lang.Object com.subhash.test.TestBean.processWithResults(com.subhash.test.Test) throws com.subhash.test.testException: com.arjuna.ats.arjuna.exceptions.FatalError

at com.arjuna.ats.internal.jts.ORBManager.getPOA(ORBManager.java:96)

at com.arjuna.ats.internal.jts.orbspecific.ControlImple.createTransactionHandle(ControlImple.java:524)

at com.arjuna.ats.internal.jts.orbspecific.interposition.ServerControl.<init>(ServerControl.java:223)

at com.arjuna.ats.internal.jta.transaction.jts.subordinate.jca.SubordinateAtomicTransaction.<init>(SubordinateAtomicTransaction.java:51)

at com.arjuna.ats.internal.jta.transaction.jts.subordinate.jca.TransactionImple.<init>(TransactionImple.java:57)

at com.arjuna.ats.internal.jta.transaction.jts.jca.TransactionImporterImple.addImportedTransaction(TransactionImporterImple.java:233)

at com.arjuna.ats.internal.jta.transaction.jts.jca.TransactionImporterImple.importRemoteTransaction(TransactionImporterImple.java:90)

at com.arjuna.ats.internal.jta.transaction.jts.jca.TransactionImporterImple.importTransaction(TransactionImporterImple.java:70)

at org.jboss.as.ejb3.remote.EJBRemoteTransactionsRepository.importTransaction(EJBRemoteTransactionsRepository.java:187) [jboss-as-ejb3-7.5.21.Final-redhat-1-bz-1653367.jar:7.5.21.Final-redhat-SNAPSHOT]

at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.createOrResumeXidTransaction(EJBRemoteTransactionPropagatingInterceptor.java:126) [jboss-as-ejb3-7.5.21.Final-redhat-1-bz-1653367.jar:7.5.21.Final-redhat-SNAPSHOT]

at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:72) [jboss-as-ejb3-7.5.21.Final-redhat-1-bz-1653367.jar:7.5.21.Final-redhat-SNAPSHOT]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.3.Final-redhat-1.jar:1.1.3.Final-redhat-1]

at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.5.21.Final-redhat-1-bz-1653367.jar:7.5.21.Final-redhat-SNAPSHOT]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.3.Final-redhat-1.jar:1.1.3.Final-redhat-1]

at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43) [jboss-as-ejb3-7.5.21.Final-redhat-1-bz-1653367.jar:7.5.21.Final-redhat-SNAPSHOT]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.3.Final-redhat-1.jar:1.1.3.Final-redhat-1]

at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100) [jboss-as-ejb3-7.5.21.Final-redhat-1-bz-1653367.jar:7.5.21.Final-redhat-SNAPSHOT]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.3.Final-redhat-1.jar:1.1.3.Final-redhat-1]

at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22) [jboss-as-ejb3-7.5.21.Final-redhat-1-bz-1653367.jar:7.5.21.Final-redhat-SNAPSHOT]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.3.Final-redhat-1.jar:1.1.3.Final-redhat-1]

at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [jboss-as-ejb3-7.5.21.Final-redhat-1-bz-1653367.jar:7.5.21.Final-redhat-SNAPSHOT]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.3.Final-redhat-1.jar:1.1.3.Final-redhat-1]

at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.5.21.Final-redhat-1-bz-1653367.jar:7.5.21.Final-redhat-SNAPSHOT]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.3.Final-redhat-1.jar:1.1.3.Final-redhat-1]

at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.5.21.Final-redhat-1.jar:7.5.21.Final-redhat-1]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.3.Final-redhat-1.jar:1.1.3.Final-redhat-1]

at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [jboss-as-ejb3-7.5.21.Final-redhat-1-bz-1653367.jar:7.5.21.Final-redhat-SNAPSHOT]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.3.Final-redhat-1.jar:1.1.3.Final-redhat-1]

at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.5.21.Final-redhat-1.jar:7.5.21.Final-redhat-1]

at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.3.Final-redhat-1.jar:1.1.3.Final-redhat-1]

at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.3.Final-redhat-1.jar:1.1.3.Final-redhat-1]

at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:189) [jboss-as-ee-7.5.21.Final-redhat-1.jar:7.5.21.Final-redhat-1]

at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.invokeMethod(MethodInvocationMessageHandler.java:327) [jboss-as-ejb3-7.5.21.Final-redhat-1-bz-1653367.jar:7.5.21.Final-redhat-SNAPSHOT]

at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.access$100(MethodInvocationMessageHandler.java:69) [jboss-as-ejb3-7.5.21.Final-redhat-1-bz-1653367.jar:7.5.21.Final-redhat-SNAPSHOT]

at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler$1.run(MethodInvocationMessageHandler.java:202) [jboss-as-ejb3-7.5.21.Final-redhat-1-bz-1653367.jar:7.5.21.Final-redhat-SNAPSHOT]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_202]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_202]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_202]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_202]

at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_202]

at org.jboss.threads.JBossThread.run(JBossThread.java:122)

来源:https://stackoverflow.com/questions/60378505/jboss-use-jts-instead-of-jta

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!