Hello all,

 I am trying to get a reference to an EJB object from
a JSP using Tomcat4.0.1
 and Inprise Application Server, 
 but I got NamingException: Can not create resource
instance

(1) I define the following ejb reference in the
web.xml file:

   <ejb-ref>
     <ejb-ref-name>ejb/User</ejb-ref-name>
     <ejb-ref-type>Entity</ejb-ref-type>
     <home>bookstore.signon.user.ejb.UserHome</home>
    
<remote>bookstore.signon.user.ejb.UserRemote</remote>
   </ejb-ref>

(2) here is part of my test.jsp file:

   UserHome home = null;
   Context initCtx = new InitialContext();
   Object obj =
initCtx.lookup("java:comp/env/ejb/User");
   home = (UserHome)PortableRemoteObject.narrow(obj,
UserHome.class); 
   UserRemote user = home.create("King", "123456");

(3) put EJBGroup.jar and EJBGroup_Client.jar In
WEN-INF/lib and 
    the package of my EJBs in WEB-INF/classes
   

Any help is appreciated!

Ginger

__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to