Re: javax.naming.NameNotFoundException: Name java: is not bound in this Context

2004-12-15 Thread QM
: javax.naming.NameNotFoundException: Name java: is not bound in this Context : at this place: Context envContext = (Context)initial.lookup(java:/comp/env); Should that be /comp/env or comp/env? If not, help us help you -- you only posted excerpts of your server.xml and context.xml, which

RE: javax.naming.NameNotFoundException: Name java: is not bound in this Context

2003-01-16 Thread Roberts, Eric
Yes, but the resource name is jdbc/esljsp - java:comp/env/jdbc/esljsp would be used in a servlet using JNDI such as: ctx = new InitialContext(); Context envCtx = (Context) ctx.lookup(java:/comp/env/); DataSource ds = (DataSource) envCtx.lookup(/jdbc/esljsp); Regards Eric

RE: javax.naming.NameNotFoundException: Name java: is not bound in this Context

2003-01-16 Thread Roberts, Eric
Sorry - missed it earlier - in the Realm definition, I think it should be just resourceName=jdbc/esljsp - not dataSourceName=jdbc/esljsp -Original Message- From: Veniamin Fichin [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 16. Jänner 2003 12:26 To: Tomcat Users List Subject: Re:

RE: javax.naming.NameNotFoundException: Name java: is not bound in this Context

2003-01-16 Thread Roberts, Eric
All I know is that if you read the server.xml which comes with TC, that is what is there!! -Original Message- From: Veniamin Fichin [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 16. Jänner 2003 13:33 To: Tomcat Users List Subject: Re: javax.naming.NameNotFoundException: Name java: is not

RE: javax.naming.NameNotFoundException: Name java: is not bound in this Context

2003-01-16 Thread Roberts, Eric
Just some other things which may help: I define my Realm datasource in the GlobalNamingResource element of server.xml and this is where the parameters are also defined. Any Context requiring authentication is defined with privileged=true. My Realm is defined within the Engine element - as the

RE: javax.naming.NameNotFoundException: Name java: is not bound in this Context

2003-01-16 Thread Roberts, Eric
I am using 4.1.18 also - but upgraded from 4.1.12 -Original Message- From: Veniamin Fichin [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 16. Jänner 2003 14:03 To: Tomcat Users List Subject: Re: javax.naming.NameNotFoundException: Name java: is not bound in this Context Roberts, Eric