You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by rx liu <li...@hotmail.com> on 2004/03/09 11:32:17 UTC
How to configure JNDI in tomcat5
I had try to configure JNDI( and DataSource) with my tomcat5.0,by hand or
by web page which is localhost:8080/admin,but both are failure.the err
occur:
Context context = new IntitalContext();
Context envContext = ( Context)context.lookup("java:comp/env");
with the err msg :
javax.naming.NameNotFoundException: Name bean is not bound in this Context
.......
i had operate under by tomcat5.0's spec in apache.step by step,is it
error?what's the matter with my configure file web.xml or server.xml?
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: How to configure JNDI in tomcat5
Posted by Marco Mistroni <mm...@waersystems.com>.
Hi,
I m assuming u have been thru the steps of configuring
Jndi in tomcat (update of server.xml and common\lib)
Assuming you have called, in ur server.xml, your datasource test/myDb,
You would have entered a resource-ref in your web.xml, that refers to
Test/myDb
Now when you look it up you have to look for java:comp/env/test/myDb
Hope this helps
Regards
marco
-----Original Message-----
From: rx liu [mailto:liurx_cn@hotmail.com]
Sent: 09 March 2004 10:32
To: struts-user@jakarta.apache.org
Subject: How to configure JNDI in tomcat5
I had try to configure JNDI( and DataSource) with my tomcat5.0,by hand
or
by web page which is localhost:8080/admin,but both are failure.the err
occur:
Context context = new IntitalContext();
Context envContext = ( Context)context.lookup("java:comp/env");
with the err msg :
javax.naming.NameNotFoundException: Name bean is not bound in this
Context
.......
i had operate under by tomcat5.0's spec in apache.step by step,is it
error?what's the matter with my configure file web.xml or server.xml?
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org