Problems with datasource/DB Connection

2004-11-30 Thread bEn Fries
Hi! I tried to install jUDDI on my Tomcat some weird error appeared as the jUDDY Happyness page showed: + Got a JNDI Context! + Got a JDBC DataSource (dsname=java:comp/env/jdbc/juddiDB) - DB connection was not aquired. (Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver') - SELECT COUNT(*)

RE: Problems with datasource/DB Connection

2004-11-30 Thread Allistair Crossley
Can you supply Tomcat version. Also, have you put your mySQL drivers JAR into tomcat/common/lib? Cheers, Allistair -Original Message- From: bEn Fries [mailto:[EMAIL PROTECTED] Sent: 30 November 2004 09:26 To: [EMAIL PROTECTED] Subject: Problems with datasource/DB Connection Hi

Re: Problems with datasource/DB Connection

2004-11-30 Thread bEn Fries
Hi! My tomcat version is Apache Tomcat/5.0.28, I haven't put any drivers in to tomcat/common/lib as I used a tomcat ready WAMP installation and as I had a look into the directory there were no file that would remind me of databases in general or mysql. So I searched the internet a bit and

RE: Problems with datasource/DB Connection

2004-11-30 Thread Allistair Crossley
Cheers. -Original Message- From: bEn Fries [mailto:[EMAIL PROTECTED] Sent: 30 November 2004 09:54 To: Tomcat Users List Subject: Re: Problems with datasource/DB Connection Hi! My tomcat version is Apache Tomcat/5.0.28, I haven't put any drivers in to tomcat/common/lib as I

Re: Problems with datasource/DB Connection

2004-11-30 Thread bEn Fries
Thanx! It's finally working! I can't bellieve that I have been so dumb that I missed that jar Thank you very much man! You saved ..errr.. maybe not my life but definatly my master thesis ;-) Ben Allistair Crossley schrieb: No, I meant the drivers for mySQL, the database you are trying to

RE: Problems with datasource/DB Connection

2004-11-30 Thread Allistair Crossley
np. good luck with that :) -Original Message- From: bEn Fries [mailto:[EMAIL PROTECTED] Sent: 30 November 2004 12:26 To: Tomcat Users List Subject: Re: Problems with datasource/DB Connection Thanx! It's finally working! I can't bellieve that I have been so dumb that I missed

RE : Problems with datasource/DB Connection

2004-11-30 Thread VAN DER MARLIERE FREDERIC
that it also contains the driver class com.mysql.jdbc.Driver, which is the official MySQL Connector/J driver. Hope this helped. Fred. -Message d'origine- De : bEn Fries [mailto:[EMAIL PROTECTED] Envoyé : mardi 30 novembre 2004 10:54 À : Tomcat Users List Objet : Re: Problems with datasource

Re: Problems with datasource/DB Connection

2004-11-30 Thread parviz
You need to download: http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-3.0.16-ga.tar.gz/from/http://mysql.mirror.redwire.net/ from: http://dev.mysql.com/downloads/connector/j/3.0.html unzip that file somewhere and copy mysql-connector-java-3.0.16-ga-bin.jar to your

Datasource and connection

2003-02-03 Thread Lindomar
Hi everybody! I'm using datasource of tomcat for get connection. Well, when i do this: ... DataSource ds = (DataSource)ctx.lookup( java:comp/env/jdbc/Anything); if (ds != null) connection = ds.getConnection(); ... In the next time, will give tomcat to me a new connection or the same? I

RE: Datasource and connection

2003-02-03 Thread Sean Dockery
) rs.close(); if(stmt != null) stmt.close(); if(conn != null) conn.close(); } } What exactly are you THINKING of doing? -Original Message- From: Lindomar [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 06:02 To: Tomcat Users List Subject: Datasource

Re: Datasource and connection

2003-02-03 Thread Lindomar
: Datasource and connection I'm curious as to why you're asking this question. You should be using the connection pool according to the documentation provided, because that is how it is intended to be used. That is... void doPost(...) { InitialContext ic = new InitialContext(); Context

Problem JNDI DataSource - no Connection on MySQL DB

2002-06-12 Thread info
for DataSource, can't get connetion); Context envCtx = (Context) initCtx.lookup(java:comp/env); if (envCtx == null) throw new SQLException(No DataSource availale for Connection (envCtx == null)); ds = (DataSource)envCtx.lookup(jdbc/wwa-mDB); if (ds == null) throw new SQLException

RE: Problem JNDI DataSource - no Connection on MySQL DB

2002-06-12 Thread Les Hughes
I refer the gentlemen to my previous answer :-) http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 12 June 2002 08:30 To: Tomcat Users List Subject: Problem JNDI DataSource - no Connection

Re: Problem JNDI DataSource - no Connection on MySQL DB

2002-06-12 Thread info
Subject: Problem JNDI DataSource - no Connection on MySQL DB Hi, trying to connect to my MySQL DB via JNDI but I do not get a Connection in detail: Using Tomcat 4.03, Linux Suse 7.3, MySQL 3.23.14. I try to connect with this code: . . . Context initCtx = new