tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alvin Wang" <xw...@qtechservices.com>
Subject Urgent.. Please help me
Date Fri, 03 May 2002 14:05:48 GMT
Hi! I have an urgent question. Could any guru help me to diagnosis it?

I'm using tomcat 4.0. My servlet gets the DataSource from JNDI. However, it
raise the following exception:

javax.naming.NameNotFoundException: Name java:comp is not bound in this
Context
        at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
        at javax.naming.InitialContext.lookup(InitialContext.java:350)

That means the the whole "java:comp" cannot be found, which I think should
have nothing to do with my DataSource resource setup in my web application
context. Also I use

       javax.naming.NamingEnumeration ne = initCtx.list("");

I found there is nothing under JNDI root.

I think there is much some configuration not right. Can any gurus help?
thanks so much!

Alvin


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message