You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Tushar Govind Nimgade <Tu...@mascotsystems.com> on 2001/10/11 08:07:12 UTC
javax.naming.NamingException
Hi,
I get the Error
javax.naming.NamingException: Cannot create resource instance
The reference that i set up in web.xml is
<ejb-ref>
<description>Admin EJB</description>
<ejb-ref-name>ejb/adminEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>tenantdb.admin.adminejb.IadminEJBHome</home>
<remote>tenantdb.admin.adminejb.IadminEJB</remote>
</ejb-ref>
I use the following code to create the bean instance
javax.naming.Context initContext ;
IadminEJBHome home = null;
IadminEJB bean = null;
initContext = new javax.naming.InitialContext();
home = (IadminEJBHome)initContext.lookup("java:comp/ejb/adminEJB");
Can i Know what change do i have to make
Regards,
Tushar