I have the Resource within the Context and I no longer get errors
when I start up TomCat...but I still get the error:
javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context at
org.apache.naming.NamingContext.lookup(NamingContext.java:811)
Context
I have been trying to connect to DB2 but I keep getting the error:
javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context at org.apache.naming.NamingContext.lookup
My code has:
Context initCtx =3D new InitialContext();
Context envCtx =3D
Is the Resource outside or inside your Context ?
It should be inside.
-Original Message-
From: Cooper, Vickie [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 3:04 PM
To: [EMAIL PROTECTED]
Subject: Trying to connect to DB2 usning JNDI
I have been trying to connect
'
Subject: RE: Trying to connect to DB2 usning JNDI
Is the Resource outside or inside your Context ?
It should be inside.
-Original Message-
From: Cooper, Vickie [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 3:04 PM
To: [EMAIL PROTECTED]
Subject: Trying to connect to DB2 usning
: Trying to connect to DB2 usning JNDI
I moved the context around the resource:
Context debug=0 docBase=C:/Program Files/Apache Group/Tomcat
4.1/webapps/vickie.war path=/vickie reloadable=false
useNaming=true
Resource name=jdbc/DB2 auth=Container
type=javax.sql.DataSource/
ResourceParams