Skip to Content
0
Former Member
Jan 04, 2005 at 02:32 PM

Naming Problems with EJB when accessing from WebApplication

23 Views

Hi all,

I'm trying to deploy an application consisting of several stateless session beans, one message driven bean and a web application. Everything works fine, until I try to log in (webapp). Then I get the following error:

com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at ik, the whole lookup name is ik/sec/IKAuthenticationEJB.

So the lookup name ik/sec/IKAuthenticationEJB is used in the code, whereas the JNDI Name of the requested bean is

sap.com/Integrationkernel/IKAuthenticationEJB (As showed in the Admin Tool). I'm wondering why there is this "sap.com" as I choosed a different name for the provider (But the error remains even if I change it to "sap.com").

As I cannot find any information about the "NameNotFoundException" I just tried the following:

- add a "ejb-ref" section to web.xml

<ejb-ref>

<ejb-ref-name>ik/sec/IKAuthenticationEJB</ejb-ref-name>

<ejb-ref-type>Session</ejb-ref-type>

<home>com.tsystems.ik.security.authentication.IKAuthenticationEJBHome</home>

<remote>com.tsystems.ik.security.authentication.IKAuthenticationEJBRemote</remote>

sap.com/Integrationkernel/IKAuthenticationEJB>

</ejb-ref>

- add a web-j2ee-engine.xml to the Web Application:

<web-j2ee-engine>

<ejb-ref>

<ejb-ref-name>ik/sec/IKAuthenticationEJB</ejb-ref-name>

sap.com/Integrationkernel/IKAuthenticationEJB>

</ejb-ref>

</web-j2ee-engine>

Does anybody know what to do? Did I declare the references in a wrong way?

Is there a complete API Javadoc available? I just found the very small one on SDN...

Thanks a lot,

Nadine