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:[EMAIL PROTECTED] > Gesendet: Freitag, 12. Dezember 2003 09:14 > An: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
