Skip to Content
0
Former Member
Apr 19, 2005 at 03:20 PM

Unable to lookup home: Path to object does not exist at : java:comp#

349 Views

Hallo,

I do not understand why I am getting the exception:

Unable to lookup home: Path to object does not exist at : java:comp#

if i have defined in the ejb-j2ee-engine.xml the jndi name:

<enterprise-beans>

<enterprise-bean>

<ejb-name>MyConverterBean</ejb-name>

<jndi-name>MyConverterBean</jndi-name>

<session-props/>

</enterprise-bean>

</enterprise-beans>

and in the ejb-jar.xml :

<enterprise-beans>

<session>

<description>the converter bean</description>

<display-name>MyConverter</display-name>

<ejb-name>MyConverterBean</ejb-name>

<home>converter.MyConverterHome</home>

<remote>converter.MyConverter</remote>

<local-home>converter.MyConverterLocalHome</local-home>

<local>converter.MyConverterLocal</local>

<ejb-class>converter.MyConverterBean</ejb-class>

<session-type>Stateless</session-type>

<transaction-type>Container</transaction-type>

</session>

</enterprise-beans>

I am creating the EJB in this way:

ic = new InitialContext();

objRef = ic.lookup("java:comp/env/ejb/MyConverter");

home = (MyConverterHome)PortableRemoteObject.narrow(objRef, MyConverterHome.class);

converter = home.create();

I checked in the Administrator tool under JDNI / ejbContext and I can see MyConverterBean in the list.

Do you have any idea what I am doing wrong?

thanks a lot for your help,

SAPLernen