You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/10/22 08:54:14 UTC
DO NOT REPLY [Bug 31846] New: -
JNDI problems:"javax.naming.NameNotFoundException: Name java:comp is not bound in this Context "
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31846>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31846
JNDI problems:"javax.naming.NameNotFoundException: Name java:comp is not bound in this Context "
Summary: JNDI problems:"javax.naming.NameNotFoundException: Name
java:comp is not bound in this Context "
Product: Tomcat 5
Version: 5.0.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: cdtdx@sohu.com
Dear Tomcat Engineer:
In my web application,i made a little program to test JNDI names and
DataSource in tomcat.but i encountered an odd problem which tomcat
say:"javax.naming.NameNotFoundException: Name java:comp is not bound in this
Context ".
I believe that i have properly configured the right /%
tomcat_home%/conf/catalina/localhost/myapp.xml and web.xml.Also i wrote the
right JNDI name "java:comp/env/jdbc/myDB".
And finally i find the solution,that is to remove all Naming-*.jar out
from /%myapp_home%/WEB-INF/lib.I firmly think there's some disorder with
tomcat classloader.In other words,ClassLoader may not check which class to be
loader first and which to be loaded second and which have already be loaded!
I hope you may finde the bug and clean it.
Thanks
from:china,UESTC,A COMPUTER
STUDENT
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org