om - No Context");
ds = (DataSource)ctx.lookup("jdbc/TestDB");
Francesco
-Messaggio originale-
Da: David Smith [mailto:[EMAIL PROTECTED]
Inviato: giovedì 7 aprile 2005 14.47
A: Tomcat Users List
Oggetto: Re: Using Tomcat 5.5.x with Mysql
Could you post the code used in doing t
David Smith [mailto:[EMAIL PROTECTED]
Inviato: giovedì 7 aprile 2005 14.47
A: Tomcat Users List
Oggetto: Re: Using Tomcat 5.5.x with Mysql
Could you post the code used in doing the lookup? What I see here
appears to imply you are using jdbc: as the jndi name to look up. As
posted earlier, y
Could you post the code used in doing the lookup? What I see here
appears to imply you are using jdbc: as the jndi name to look up. As
posted earlier, your jndi should look more like
java:comp/env/jdbc/TestDB in the code where you do the lookup.
--David
Marchioni Francesco wrote:
Hi all,
I'm
14.32
A: Tomcat Users List
Oggetto: RE: Using Tomcat 5.5.x with Mysql
I am using mysql 4.1 and Tomcat 5.5.x successfully. My context looks
the same as yours, but I do not have a resource-ref in my web.xml as
you do. I simple reference it like this: "java:comp/env/jdbc/TestDB"
in my hib
he concept should be the same...
Is the mysql-connector.jar in your $CATALINA_HOME/common/lib dir?
|)ave
-Original Message-
From: Marchioni Francesco [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 07, 2005 7:09 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: Using Tomcat 5.5.x wit
Hi all,
I'm trying to configure a Connection Pool with Tomcat 5.5.x and MySql 4.1.
Unfortunately I cannot lookup from JNDI context the Datasource.
JNDI lookup failed : javax.naming.NameNotFoundException: Name jdbc: is not
bound in this Context
javax.naming.NameNotFoundException: Name jdbc is not b