RE: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-19 Thread Euan Guttridge
Still waiting for some confirmation from Remy Maucherat. He was 
 talking about the client deployer package, however I cannot find 
it...

Neither can I..

Thanks

-Original Message-
From: Ilja Hehenkamp [mailto:[EMAIL PROTECTED] 
Sent: 15 September 2003 16:07
To: [EMAIL PROTECTED]
Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load JDBC
driver class 'null'


It could be related, but I'm not sure.

I think the problem lies in the way the application gets deployed with this 
ant build file. Probably the docbase doesn't match (however that's just a 
wild guess)

Still waiting for some confirmation from Remy Maucherat. He was talking 
about the client deployer package, however I cannot find it...

Ilja

_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-19 Thread Ilja Hehenkamp
Remy Maucherat, can you elobarate on this deployer client? You talked about 
it, but it can nowhere be found. I'm still very stuck on this matter and 
don't have a way of fixing it... Deploying is a pain in the ass now compared 
to the convenient way of building with ant...

From: Ilja Hehenkamp [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load JDBC 
driver class 'null'
Date: Fri, 19 Sep 2003 19:37:46 +0200


Sorry, I don't really understand what you mean?

Do you mean I shouldn't use the build file anymore? If so: that's too  
bad,
since I like the way of automated updating the tomcat manager...

I'm sure you do. You seem to be stuck on that particular page of the
docs, however, which happens to be out of date, and doesn't actually
mention what is important.
Read the deployer page instead
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html ).
But still: I don't know how to fix the problem: why doesn't the jndi
datasource work with the through ant deployed application?
Because I don't think your stuff in server.xml is used at all.

That's much better.

I recommend you use the deployer package instead. The instructions  from
appdev are going to be updated or removed.

I think I know where lies the problem, however I still don't know  how 
to fix
it...

I use the sample build.xml file from Tomcat:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/ build.xml.txt 
to
install, reload and distribute my sample application.

When I do an ant -install it apparantly installs the application in  
the
Tomcat manager, however the application doesn't show up in the  webapps
directory. That's 1.

So maybe there's a conflict with either the context path, which I  
don't
think so, since my build file has explicitly set the context path to
/DBTest:

  property name=app.name  value=DBTest/
  property name=app.path  value=/${app.name}/
  property name=app.version   value=/
  property name=build.homevalue=${basedir}/build/
  property name=catalina.home value=/Library/Tomcat/ !--  UPDATE 
THIS!
--
  property name=dist.home value=${basedir}/dist/
  property name=docs.home value=${basedir}/docs/
  property name=manager.url   value=  http://localhost:8080/manager 
/
  property name=src.home  value=${basedir}/src/
  property name=web.home  value=${basedir}/web/

Or there's a conflict with the docbase, which I suspect... However  I'm 
not
sure why and how to fix it

Because when I put the generated war file (when doing an ant -dist)  in 
the
webapps directory the connection works! Although this works, it's  not 
very
convenient, since it defeats the purpose of the automated  installing 
through
ant...

Hope I made myself clear?


Ok, first some configuration information:

Tomcat 5.09
MySQL Driver 3.08 stable
OS: Mac OSX 10.2.6
J2SE 1.4.2
all commons libraries reside in $CATALINA_HOME/common/lib
MySQL Driver resides in $CATALINA_HOME/common/lib as well
I tried setting up a simple JNDI datasource connection but get  the  
following error message:
java.sql.SQLException: Cannot load JDBC driver class 'null'
at  
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataS 
ource
.java:529)
at  
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSour 
ce.ja
va:312)
at foo.DBTest.init(DBTest.java:24)
at foo.TestServlet.doGet(TestServlet.java:34)
at  
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at  
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  
  

The code and examples are taken from  
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-
examples-howto.html
I have searched through tons of archives and websites and mostly  
this  
error could be resolved by placing the driver and commons in the  
common/lib directory. However in my case they are there, so I  
cannot  
figure out what's the problem...

server.xml:

Context path=/DBTest docBase=DBTest debug=5
  reloadable=true crossContext=true
Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=localhost_DBTest_log.   
suffix=.txt
 timestamp=true/
  Resource name=jdbc/TestDB
auth=Container
type=javax.sql.DataSource/
  ResourceParams name=jdbc/TestDB
   parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
   /parameter
   parameter
nameusername/name
valuexxx/value
   /parameter
   parameter
namepassword/name
valuexxx/value
   /parameter
   parameter
nameurl/name
valuejdbc:mysql://localhost/javatest?autoReconnect=true/ value
   /parameter
  /ResourceParams
/Context
web.xml

?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app PUBLIC
 -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd 
web-app
   descriptionMySQL Test App/description

Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja
Ok, first some configuration information:

Tomcat 5.09
MySQL Driver 3.08 stable
OS: Mac OSX 10.2.6
J2SE 1.4.2
all commons libraries reside in $CATALINA_HOME/common/lib
MySQL Driver resides in $CATALINA_HOME/common/lib as well
I tried setting up a simple JNDI datasource connection but get the  
following error message:

java.sql.SQLException: Cannot load JDBC driver class 'null'
	at  
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource 
.java:529)
	at  
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja 
va:312)
	at foo.DBTest.init(DBTest.java:24)
	at foo.TestServlet.doGet(TestServlet.java:34)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 

The code and examples are taken from  
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource- 
examples-howto.html

I have searched through tons of archives and websites and mostly this  
error could be resolved by placing the driver and commons in the  
common/lib directory. However in my case they are there, so I cannot  
figure out what's the problem...

server.xml:

Context path=/DBTest docBase=DBTest debug=5
 reloadable=true crossContext=true
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_DBTest_log.  
suffix=.txt
timestamp=true/

 Resource name=jdbc/TestDB
   auth=Container
   type=javax.sql.DataSource/
 ResourceParams name=jdbc/TestDB
  parameter
   namedriverClassName/name
   valueorg.gjt.mm.mysql.Driver/value
  /parameter
  parameter
   nameusername/name
   valuexxx/value
  /parameter
  parameter
   namepassword/name
   valuexxx/value
  /parameter
  parameter
   nameurl/name
   valuejdbc:mysql://localhost/javatest?autoReconnect=true/value
  /parameter
 /ResourceParams
/Context
web.xml

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC
-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  descriptionMySQL Test App/description
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/TestDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
  servlet
  servlet-nameDBTestServlet/servlet-name
  description
Bla...
  /description
  servlet-classfoo.TestServlet/servlet-class
  /servlet
  servlet-mapping
  servlet-nameDBTestServlet/servlet-name
  url-pattern/DBTestServlet/url-pattern
  /servlet-mapping
/web-app
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Martin Jacobson
Ilja wrote:
Ok, first some configuration information:

Tomcat 5.09
MySQL Driver 3.08 stable
OS: Mac OSX 10.2.6
J2SE 1.4.2
My config is not the same (TC 4.1.24, OSX 10.2.6, MySQL 3.07), and my 
parameters are different:
	ResourceParams name=jdbc/EuratomDB
		parameter
			namefactory/name
			valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
		/parameter
		parameter
			namemaxActive/name
			value100/value
		/parameter
		parameter
			namemaxIdle/name
			value3/value
		/parameter
		parameter
			namemaxWait/name
			value100/value
		/parameter
		parameter
			nameusername/name
			valuexxx/value
		/parameter
		parameter
			namepassword/name
			valuexxx/value
		/parameter
		parameter
			namedriverClassName/name
			valuecom.mysql.jdbc.Driver/value
		/parameter
		parameter
			nameurl/name
			valuejdbc:mysql://localhost/euratom?autoReconnect=true/value
		/parameter
	/ResourceParams

This works for me! The main diffs are (i) I specify the factory, and 
(ii), the driverClassName is com.mysql.jdbc.Driver

However, the exception seems to suggest that the correct factory is 
being used by default. Your driverClassName is the old name, and might 
not be in the jar file any more.

HTH
Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja Hehenkamp
I think I know where lies the problem, however I still don't know how to fix 
it...

I use the sample build.xml file from Tomcat: 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt to 
install, reload and distribute my sample application.

When I do an ant -install it apparantly installs the application in the 
Tomcat manager, however the application doesn't show up in the webapps 
directory. That's 1.

So maybe there's a conflict with either the context path, which I don't 
think so, since my build file has explicitly set the context path to 
/DBTest:

 property name=app.name  value=DBTest/
 property name=app.path  value=/${app.name}/
 property name=app.version   value=/
 property name=build.homevalue=${basedir}/build/
 property name=catalina.home value=/Library/Tomcat/ !-- UPDATE THIS! 
--
 property name=dist.home value=${basedir}/dist/
 property name=docs.home value=${basedir}/docs/
 property name=manager.url   value=http://localhost:8080/manager/
 property name=src.home  value=${basedir}/src/
 property name=web.home  value=${basedir}/web/

Or there's a conflict with the docbase, which I suspect... However I'm not 
sure why and how to fix it

Because when I put the generated war file (when doing an ant -dist) in the 
webapps directory the connection works! Although this works, it's not very 
convenient, since it defeats the purpose of the automated installing through 
ant...

Hope I made myself clear?

From: Martin Jacobson [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load JDBC 
driver class 'null'
Date: Mon, 15 Sep 2003 14:00:52 +0200

Ilja wrote:
Ok, first some configuration information:

Tomcat 5.09
MySQL Driver 3.08 stable
OS: Mac OSX 10.2.6
J2SE 1.4.2
My config is not the same (TC 4.1.24, OSX 10.2.6, MySQL 3.07), and my 
parameters are different:
	ResourceParams name=jdbc/EuratomDB
		parameter
			namefactory/name
			valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
		/parameter
		parameter
			namemaxActive/name
			value100/value
		/parameter
		parameter
			namemaxIdle/name
			value3/value
		/parameter
		parameter
			namemaxWait/name
			value100/value
		/parameter
		parameter
			nameusername/name
			valuexxx/value
		/parameter
		parameter
			namepassword/name
			valuexxx/value
		/parameter
		parameter
			namedriverClassName/name
			valuecom.mysql.jdbc.Driver/value
		/parameter
		parameter
			nameurl/name
			valuejdbc:mysql://localhost/euratom?autoReconnect=true/value
		/parameter
	/ResourceParams

This works for me! The main diffs are (i) I specify the factory, and 
(ii), the driverClassName is com.mysql.jdbc.Driver

However, the exception seems to suggest that the correct factory is being 
used by default. Your driverClassName is the old name, and might not be in 
the jar file any more.

HTH
Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Remy Maucherat
Ilja Hehenkamp wrote:

I think I know where lies the problem, however I still don't know how to 
fix it...

I use the sample build.xml file from Tomcat: 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt to 
install, reload and distribute my sample application.

When I do an ant -install it apparantly installs the application in the 
Tomcat manager, however the application doesn't show up in the webapps 
directory. That's 1.

So maybe there's a conflict with either the context path, which I don't 
think so, since my build file has explicitly set the context path to 
/DBTest:

 property name=app.name  value=DBTest/
 property name=app.path  value=/${app.name}/
 property name=app.version   value=/
 property name=build.homevalue=${basedir}/build/
 property name=catalina.home value=/Library/Tomcat/ !-- UPDATE 
THIS! --
 property name=dist.home value=${basedir}/dist/
 property name=docs.home value=${basedir}/docs/
 property name=manager.url   value=http://localhost:8080/manager/
 property name=src.home  value=${basedir}/src/
 property name=web.home  value=${basedir}/web/

Or there's a conflict with the docbase, which I suspect... However I'm 
not sure why and how to fix it

Because when I put the generated war file (when doing an ant -dist) in 
the webapps directory the connection works! Although this works, it's 
not very convenient, since it defeats the purpose of the automated 
installing through ant...

Hope I made myself clear?
That's much better.

I recommend you use the deployer package instead. The instructions from 
appdev are going to be updated or removed.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja Hehenkamp
Sorry, I don't really understand what you mean?

Do you mean I shouldn't use the build file anymore? If so: that's too bad, 
since I like the way of automated updating the tomcat manager...

But still: I don't know how to fix the problem: why doesn't the jndi 
datasource work with the through ant deployed application?


From: Remy Maucherat [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load JDBC 
driver class 'null'
Date: Mon, 15 Sep 2003 15:17:53 +0200

Ilja Hehenkamp wrote:

I think I know where lies the problem, however I still don't know how to 
fix it...

I use the sample build.xml file from Tomcat: 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt to 
install, reload and distribute my sample application.

When I do an ant -install it apparantly installs the application in the 
Tomcat manager, however the application doesn't show up in the webapps 
directory. That's 1.

So maybe there's a conflict with either the context path, which I don't 
think so, since my build file has explicitly set the context path to 
/DBTest:

 property name=app.name  value=DBTest/
 property name=app.path  value=/${app.name}/
 property name=app.version   value=/
 property name=build.homevalue=${basedir}/build/
 property name=catalina.home value=/Library/Tomcat/ !-- UPDATE 
THIS! --
 property name=dist.home value=${basedir}/dist/
 property name=docs.home value=${basedir}/docs/
 property name=manager.url   value=http://localhost:8080/manager/
 property name=src.home  value=${basedir}/src/
 property name=web.home  value=${basedir}/web/

Or there's a conflict with the docbase, which I suspect... However I'm not 
sure why and how to fix it

Because when I put the generated war file (when doing an ant -dist) in the 
webapps directory the connection works! Although this works, it's not very 
convenient, since it defeats the purpose of the automated installing 
through ant...

Hope I made myself clear?
That's much better.

I recommend you use the deployer package instead. The instructions from 
appdev are going to be updated or removed.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Remy Maucherat
Ilja Hehenkamp wrote:

Sorry, I don't really understand what you mean?

Do you mean I shouldn't use the build file anymore? If so: that's too 
bad, since I like the way of automated updating the tomcat manager...
I'm sure you do. You seem to be stuck on that particular page of the 
docs, however, which happens to be out of date, and doesn't actually 
mention what is important.
Read the deployer page instead 
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html).

But still: I don't know how to fix the problem: why doesn't the jndi 
datasource work with the through ant deployed application?
Because I don't think your stuff in server.xml is used at all.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja Hehenkamp
Sorry for being such a pain in the ass, but It's still not really clear to 
me:

What do you actually suggest? Are you talking about this client deployer 
that's listed on that page? Where can I find it? (I cannot find it, neither 
the build file that's mentioned there)

Will this fix my problem?

So for confirmation: I shouldn't use the old ant buildfile anymore?

Ilja


From: Remy Maucherat [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load JDBC 
driver class 'null'
Date: Mon, 15 Sep 2003 15:33:13 +0200

Ilja Hehenkamp wrote:

Sorry, I don't really understand what you mean?

Do you mean I shouldn't use the build file anymore? If so: that's too bad, 
since I like the way of automated updating the tomcat manager...
I'm sure you do. You seem to be stuck on that particular page of the docs, 
however, which happens to be out of date, and doesn't actually mention what 
is important.
Read the deployer page instead 
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html).

But still: I don't know how to fix the problem: why doesn't the jndi 
datasource work with the through ant deployed application?
Because I don't think your stuff in server.xml is used at all.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Paul
it is possible that the problem stems from Tomcat itself.  The reason  i say
that, is because i have setup a dbcp connection (using Tomcat 4.1, jdk 1.4,
oracle on win2k), and i have managed to get it to work with a particular
application, but get the same Cannot load JDBC driver class 'null' when
try to use connection with ROOT application, or with any other application.
It is weird, and i have not figured out what problem is.  Also, there are
many previous emails in this user-group pertaining to this Cannot-load-JDBC
error, esp. when associated with use as a global resource.

-paul lomack

p.s. i would be happy to report my server.xml or web.xml or jsp code for
calling connection, if you think it may be of any use to you.

- Original Message - 
From: Ilja Hehenkamp [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 9:10 AM
Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load JDBC
driver class 'null'


 I think I know where lies the problem, however I still don't know how to
fix
 it...

 I use the sample build.xml file from Tomcat:
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt to
 install, reload and distribute my sample application.

 When I do an ant -install it apparantly installs the application in the
 Tomcat manager, however the application doesn't show up in the webapps
 directory. That's 1.

 So maybe there's a conflict with either the context path, which I don't
 think so, since my build file has explicitly set the context path to
 /DBTest:

   property name=app.name  value=DBTest/
   property name=app.path  value=/${app.name}/
   property name=app.version   value=/
   property name=build.homevalue=${basedir}/build/
   property name=catalina.home value=/Library/Tomcat/ !-- UPDATE
THIS!
 --
   property name=dist.home value=${basedir}/dist/
   property name=docs.home value=${basedir}/docs/
   property name=manager.url   value=http://localhost:8080/manager/
   property name=src.home  value=${basedir}/src/
   property name=web.home  value=${basedir}/web/

 Or there's a conflict with the docbase, which I suspect... However I'm not
 sure why and how to fix it

 Because when I put the generated war file (when doing an ant -dist) in the
 webapps directory the connection works! Although this works, it's not very
 convenient, since it defeats the purpose of the automated installing
through
 ant...

 Hope I made myself clear?

 From: Martin Jacobson [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load
JDBC
 driver class 'null'
 Date: Mon, 15 Sep 2003 14:00:52 +0200
 
 Ilja wrote:
 Ok, first some configuration information:
 
 Tomcat 5.09
 MySQL Driver 3.08 stable
 OS: Mac OSX 10.2.6
 J2SE 1.4.2
 
 
 My config is not the same (TC 4.1.24, OSX 10.2.6, MySQL 3.07), and my
 parameters are different:
  ResourceParams name=jdbc/EuratomDB
  parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
  namemaxActive/name
  value100/value
  /parameter
  parameter
  namemaxIdle/name
  value3/value
  /parameter
  parameter
  namemaxWait/name
  value100/value
  /parameter
  parameter
  nameusername/name
  valuexxx/value
  /parameter
  parameter
  namepassword/name
  valuexxx/value
  /parameter
  parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
  /parameter
  parameter
  nameurl/name
  valuejdbc:mysql://localhost/euratom?autoReconnect=true/value
  /parameter
  /ResourceParams
 
 This works for me! The main diffs are (i) I specify the factory, and
 (ii), the driverClassName is com.mysql.jdbc.Driver
 
 However, the exception seems to suggest that the correct factory is being
 used by default. Your driverClassName is the old name, and might not be
in
 the jar file any more.
 
 HTH
 Martin
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 _
 MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja Hehenkamp
It could be related, but I'm not sure.

I think the problem lies in the way the application gets deployed with this 
ant build file. Probably the docbase doesn't match (however that's just a 
wild guess)

Still waiting for some confirmation from Remy Maucherat. He was talking 
about the client deployer package, however I cannot find it...

Ilja

_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]