tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Behrens" <...@diekleinedomain.de>
Subject AW: JNDI comp namespace
Date Fri, 12 Dec 2003 08:24:18 GMT
Hi Tony,

I have - and it allways proved to be my fault in the end ;) I would
suggest that you post your server xml to have someone look it over.
Don't forget to change your connect data and password before though! Is
the resource bound in the appropriate context or globally?

Cheers, Jan

> -----Ursprungliche Nachricht-----
> Von: Tony Colson [mailto:colson@prettyhealth.biz] 
> Gesendet: Freitag, 12. Dezember 2003 09:14
> An: tomcat-user@jakarta.apache.org
> Betreff: JNDI comp namespace
> 
> 
> Dear Tomcat Users,
> 
>  
> 
> I am using Tomcat 4 and trying to use JNDI to connect to a 
> data source and environment variables.  I get the following 
> when trying to access the InitialContext via
> 
> DataSource ds = (DataSource)initialContext.lookup(
> "java:comp/env/jdbc/mydb" );
> 
>  
> 
> javax.naming.NameNotFoundException: Name comp is not bound in 
> this Context
> 
>  
> 
> I have read all the documentation many times and cannot see 
> what I am doing wrong.  The server.xml seems to be fine; I 
> can see the appropriate context entries in the tomcat manager 
> application.  But for some reason the comp namespace does not 
> seem to get set up; basically Tomcat doesn't do what the 
> documentation says it should.
> 
>  
> 
> Has anybody encountered this type of situation before and 
> found a solution?
> 
>  
> 
> Thanks
> 
> Tony
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message