tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tushar Govind Nimgade <Tusha...@mascotsystems.com>
Subject javax.naming.NamingException
Date Thu, 11 Oct 2001 06:07:12 GMT
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





Mime
View raw message