Overview
You are using the below APIs in the Adapter workstep to get and complete the workitem:
- com.savvion.sbm.bizlogic.server.svo.WorkStepInstance
- com.savvion.sbm.bizlogic.server.svo.WorkItem
However, the Adapter workstep fails when executing these APIs fails the below errors:
javax.naming.NameNotFoundException: Name "comp/env/ejb/com.savvion.sbm.bizlogic.server.ejb.WorkStepInstanceSBHome" not found.
javax.naming.NameNotFoundException: Name "comp/env/ejb/com.savvion.sbm.bizlogic.server.ejb.WorkItemSBHome" not found.
Detailed errors:
com.savvion.sbm.bizlogic.util.BizLogicAppException: (3501) Adapter <42,321>:<22>:<1> execution failed.; context(EPM.processAdapter)
at com.savvion.sbm.bizlogic.server.EPManager.processAdapter(EPManager.java:560)
... 32 more
Caused by: com.savvion.sbm.bizlogic.util.BizLogicAppException:
(1576) Error in External Performer Execution <com.aurea.ps.clm.workflow.cxp.bl.CLMContentModeration:removeApprovalTasks> for the Process Instance <CLMContentModeration#42321>.; context(EPManager.invokeOnlyPerforming)
at com.savvion.sbm.bizlogic.server.EPManager.invokeOnlyPerforming(EPManager.java:1235)
... 33 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor1235.invoke(Unknown Source)
... 36 more
Caused by: com.savvion.sbm.bizlogic.util.BizLogicClientException: (1527) Failed to look-up <ContentApproval> from JNDI service.
at com.savvion.sbm.bizlogic.server.svo.WorkStepInstance.findRemoteRef(WorkStepInstance.java:759)
... 41 more
Caused by: com.savvion.sbm.bizlogic.util.BizLogicClientException: (1527) Failed to look-up <com.savvion.sbm.bizlogic.server.ejb.WorkStepInstanceSBHome> from JNDI service.
at com.savvion.sbm.bizlogic.server.svo.BLProcess.getRemoteRef(BLProcess.java:407)
... 43 more
Caused by: javax.naming.NameNotFoundException: Name "comp/env/ejb/com.savvion.sbm.bizlogic.server.ejb.WorkStepInstanceSBHome" not found.
at org.apache.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:207)
... 51 more
Environment
All Supported Operating System TomEE Server+ Postgres database Savvion-Bizlogic 2021 R1
Solution
The above error occurs because the following Session Bean entries are missing in ejb-jar.xml (bundled with bizlogic.jar):
<ejb-ref>
<description><![CDATA[refer to WorkStepInstanceSBBean]]></description>
<ejb-ref-name>ejb/com.savvion.sbm.bizlogic.server.ejb.WorkStepInstanceSBHome</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.savvion.sbm.bizlogic.server.ejb.WorkStepInstanceSBHome</home>
<remote>com.savvion.sbm.bizlogic.server.ejb.WorkStepInstanceSB</remote>
<ejb-link>bizlogic.jar#WorkStepInstanceSBBean</ejb-link>
</ejb-ref>
<ejb-ref>
<description><![CDATA[refer to WorkItemSBBean]]></description>
<ejb-ref-name>ejb/com.savvion.sbm.bizlogic.server.ejb.WorkItemSBHome</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.savvion.sbm.bizlogic.server.ejb.WorkItemSBHome</home>
<remote>com.savvion.sbm.bizlogic.server.ejb.WorkItemSB</remote>
<ejb-link>bizlogic.jar#WorkItemSBBean</ejb-link>
</ejb-ref>
This defect was resolved in 2021 R1 therefore customers are advised to upgrade to at least this version or newer.
Customers unable to immediately upgrade can implement the following workaround:
- Download and (re)place the attached bizlogic.jar under SBM_HOME\ejbapps\bizlogic.
- Restart the servers.
<supportagent>
Defect Number: SBM-70648
</supportagent>