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 <[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]>
>
>


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

Reply via email to