Hi all,
I received a quite stange error (Below you can see the relavent part of the logfile).
While the first attempt to get the ConnectionFactory of the SAP JRA succeeds, the second one fails. As you can see, context and parameters of the lookup are exactly the same. Does anybody has experiences with this problem?
Thanks a lot
Nadine
*******************************************************
<b>1st attempt</b>
DEBUG SAPEngine_Application_Thread[impl:3]_18 com.xxx.ik.ejb.srouter.util.SystemRouterUtil - return jca
name: java:comp/env/SAPJCA
INFO SAPEngine_Application_Thread[impl:3]_18 com.xxx.ik.ejb.sap.generic.bo.SAPGenericBO - search for
JCA Adapter: java:comp/env/SAPJCA
DEBUG SAPEngine_Application_Thread[impl:3]_18 com.xxx.ik.ejb.sap.generic.bo.SAPGenericBO -
connectionfactory: com.sap.mw.jco.jra.JRA$ConnectionFactoryImpl@1d4445d
<b>2nd attempt</b>
DEBUG SAPEngine_Application_Thread[impl:3]_1 com.xxx.ik.ejb.srouter.util.SystemRouterUtil - return jca
name: java:comp/env/SAPJCA
INFO SAPEngine_Application_Thread[impl:3]_1 com.xxx.ik.ejb.sap.generic.bo.SAPGenericBO - search for JCA Adapter: java:comp/env/SAPJCA
ERROR SAPEngine_Application_Thread[impl:3]_1 com.xxx.ik.ejb.sap.generic.bo.SAPGenericBO -
com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/SAPJCA.
Hi Nadine,
Maybe the application of the EJB com.xxx.ik.ejb.sap.generic.bo.SAPGenericBO has been redeployed/restarted between the two attempts?
You can list the whole JNDI tree using the telnet command "lsn" from the "naming" group (>jump 0, then >add naming, then >lsn). The JNDI context of your EJB should be under
ejbContexts/<provider-name>/<application-name>/<jndi-name>
By default the <jndi-name> of an EJB is
<provider-name>/<application-name>/<ejb-name>
Hope this will be of help,
Vladimir
Add a comment