Overview
You have a long running adapter in business process which you have marked explicitly in the adapter configuration.
It's working with JBoss but failing on TomEE with the below error:
java.lang.RuntimeException: com.savvion.sbm.bizlogic.util.BizLogicAppException: (1535) Cannot activate workstep instance <ProcessFetchModifiedUsers>:<UserSyncService#124>:<UserSyncService>; context(EPJMSHandler.notify())
at com.savvion.sbm.bizlogic.server.WFExternalInstance.sendMessage(WFExternalInstance.java:173)
at com.savvion.sbm.bizlogic.server.WFExternalInstance.execute(WFExternalInstance.java:92)
at com.savvion.sbm.bizlogic.server.WFWorkstepInstance.startWorkstepExecution(WFWorkstepInstance.java:2267)
at com.savvion.sbm.bizlogic.server.WFWorkstepInstance.runIt(WFWorkstepInstance.java:1794)
at com.savvion.sbm.bizlogic.server.WFWorkstepInstance.activate(WFWorkstepInstance.java:1282)
at com.savvion.sbm.bizlogic.server.WFProcessContext.activateWorkstep(WFProcessContext.java:1091)
at com.savvion.sbm.bizlogic.server.WFWorkstepInstance.activateWfWorkstep(WFWorkstepInstance.java:1061)
at com.savvion.sbm.bizlogic.server.WFWorkstepInstance.activateNextWorksteps(WFWorkstepInstance.java:1035)
at com.savvion.sbm.bizlogic.server.WFExternalInstance.complete(WFExternalInstance.java:258)
at com.savvion.sbm.bizlogic.server.WFProcessContext.completeWorkstep(WFProcessContext.java:1117)
at com.savvion.sbm.bizlogic.server.EPManager.complete(EPManager.java:1556)
at com.savvion.sbm.bizlogic.server.EPManager.updateAdapterOutput(EPManager.java:1459)
at com.savvion.sbm.bizlogic.server.AdapterRunner.updateAdapterOutput(AdapterRunner.java:189)
at com.savvion.sbm.bizlogic.server.AdapterRunner.executeUsingUT(AdapterRunner.java:80)
at com.savvion.sbm.bizlogic.server.ejb.BLAdapterMDB.onMessage(BLAdapterMDB.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:205)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:186)
at org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
at org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:205)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:186)
at org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
at org.apache.openejb.core.mdb.MdbContainer._invoke(MdbContainer.java:488)
at org.apache.openejb.core.mdb.MdbContainer.invoke(MdbContainer.java:462)
at org.apache.openejb.core.mdb.EndpointHandler.deliverMessage(EndpointHandler.java:233)
at org.apache.openejb.core.mdb.EndpointHandler.invoke(EndpointHandler.java:174)
at com.savvion.sbm.bizlogic.server.ejb.BLAdapterMDB$$LocalBeanProxy.onMessage(com/savvion/sbm/bizlogic/server/ejb/BLAdapterMDB.java)
at org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:123)
at org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:64)
at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:1041)
at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
at org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:366)
at org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.savvion.sbm.bizlogic.util.BizLogicAppException: (1535) Cannot activate workstep instance <ProcessFetchModifiedUsers>:<UserSyncService#124>:<UserSyncService>; context(EPJMSHandler.notify())
at com.savvion.sbm.bizlogic.server.EPJMSHandler.notify(EPJMSHandler.java:80)
at com.savvion.sbm.bizlogic.server.WFExternalInstance.sendMessage(WFExternalInstance.java:156)
... 42 more
Caused by: com.savvion.sbm.util.BMJMSService$BMJMSException: (041) Error looking up destination <java:comp/env/jms/BLEnterpriseAdapterQueue> for provider <tomee>.(lookupDestination(d))
at com.savvion.sbm.util.BMJMSService.throwex(BMJMSService.java:1157)
at com.savvion.sbm.util.BMJMSService.lookupDestination(BMJMSService.java:577)
at com.savvion.sbm.util.BMJMSService.sendMessage(BMJMSService.java:722)
at com.savvion.sbm.bizlogic.server.EPJMSHandler.notify(EPJMSHandler.java:66)
... 43 more
Caused by: javax.naming.NameNotFoundException: Name "comp/env/jms/BLEnterpriseAdapterQueue" not found.
at org.apache.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:207)
at org.apache.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:159)
at org.apache.openejb.core.ivm.ContextHandler.lookup(ContextHandler.java:58)
at org.apache.tomee.catalina.OpenEJBContext.lookup(OpenEJBContext.java:51)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:163)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at com.savvion.sbm.util.BMJMSService.lookupDestination(BMJMSService.java:569)
... 45 more
Solution
This issue has been fixed in Aurea Process 2021 R1 release, refer to Aurea Process 2021 R1 Release Notes. Please, upgrade to 2021 R1 or later version.