Hi,
Thanks for the comments, I am using Inprise
Application Server as EJB container, it works in
Tomcat 3.2, I am trying upgrade to tomcat4.0, I don't
why I can not get EJB home.
Thanks !
Ginger
From: "Craig R. McClanahan"
Subject: Re: javax.naming.NamingException
Date: Fri, 7 Dec 2001 10:23:21 -0800 (PST)
Tomcat by itself does not support EJBs.
Craig McClanahan
On Thu, 6 Dec 2001, Ginger Huangfu wrote:
> Date: Thu, 6 Dec 2001 22:54:46 -0800 (PST)
> From: Ginger Huangfu <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <tomcat-
[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: javax.naming.NamingException
>
> Hi,
>
> I get the Error
>
> javax.naming.NamingException: Cannot create resource
> instance
>
> (1) The ejb reference defined in web.xml is
>
> <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);
>
> (3) I put the ejb related jar files under
WEN-INF/lib
> and
> the package of my EJBs in WEB-INF/classes
>
>
> Any help is appreciated!
>
> Ginger
>
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>