: 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
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
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:
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
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
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