You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ginger Huangfu <hu...@yahoo.com> on 2001/12/07 07:54:46 UTC
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: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: javax.naming.NamingException
Posted by "Craig R. McClanahan" <cr...@apache.org>.
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 <hu...@yahoo.com>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: tomcat-user@jakarta.apache.org
> 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: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>