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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to