Skip to Content
avatar image
Former Member

Strange Lookup Error (SAP Resource Adapter)

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 08, 2005 at 09:17 AM

    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 comment
    10|10000 characters needed characters exceeded

    • Hi Nadine,

      It doesn't matter if the EJB does the lookup itself or delegates the call to some helper class which performs the lookup - then it's actually performed on behalf of the EJB. This is the J2EE standard behavior.

      Best regards,

      Vladimir