tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrei Tchijov <>
Subject Using JNDI. java:comp .... not defined?
Date Mon, 22 Oct 2007 20:54:54 GMT
   I guess I am missing something very very basic, but I can not see  
what it is.  I am trying to make some resources available via JNDI. I  
have put appropriate "GlabalNamingResources/Resource" into my  
server.xml ( and I think I did it properly - at least tomcat is not  
complaining about ).  The only problem is that I am getting

javax.naming.NameNotFoundException: Name comp is not bound in this  
         at org.apache.naming.NamingContext.list(
         at org.apache.naming.NamingContext.list(
         at org.apache.naming.SelectorContext.list 
         at javax.naming.InitialContext.list(

when I am trying to do " ... initCtx.list( "java:comp/env" ); ...".  
Do I need to do anything to "enable" JNDI? Does it make any  
difference that I am trying to use JNDI from Valve?

Any help will be highly appreciated.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message