. There something not documented or clear in the docs, as many people are
having this issue.
Here is the SQLException
Error: java.sql.SQLException: Cannot load JDBC driver class 'null' SQL
state: null
Here is a snap shot of the server.xml file:
GlobalNamingResources
Environment description=Absolute
We are using the tomcat 4.1.24 and the j2sdk1.4.2_02. The jdbc- driver
we use is 'mysql-connector-java-3.0.8-stable-bin.jar'
As database we use mysql Version 3.23.58-nt.
When we call the web-service we get the message cannot load jdbc driver
class 'null' . Who can help?
Here is an extract
Hi Jason,
I tried as u said. But same exception is getting.
I am using tomcat4.1.27, sqlserver 2000.
can u send me ur connection pooling code.
Thank you.
vijay
--- El Toro [EMAIL PROTECTED] wrote:
Where are your jdbc for sql server jars? Put all
three under /%TOMCAT_HOME%/common/lib.
Also,
Hi,
From one week i am trying to solve this problem.
Please any one help me.
if i am connection directly its ok. but if i am using
connection pooling this exception is comming.
my connection pooling syntax in server.xml is
Where are your jdbc for sql server jars? Put all
three under /%TOMCAT_HOME%/common/lib.
Also, your factoryClassName should be:
factoryClassName=org.apache.naming.factory.ResourceFactory
I'm currently using connection pooling with sql server
and thats the only things i can see that might cause
]'; '[EMAIL PROTECTED]';
'[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: SOLUTION!! -- Cannot load JDBC driver class 'null'
Using Sun JDK 1.4.1_02 on Win2k SP2 and Jakarta 4.1.27.
The tutorial in the tomcat docs failed for me also with the Cannot load
JDBC
driver class 'null'. I banged my
: 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
[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
Using Sun JDK 1.4.1_02 on Win2k SP2 and Jakarta 4.1.27.
The tutorial in the tomcat docs failed for me also with the Cannot load JDBC
driver class 'null'. I banged my head and had to get stitches and an ice
pack. After that I came back to the office and cleaned out my server.xml and
web.xml
PROTECTED]'; '[EMAIL PROTECTED]'; '[EMAIL
PROTECTED]'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: SOLUTION!! -- Cannot load JDBC driver class 'null'
Using Sun JDK 1.4.1_02 on Win2k SP2 and Jakarta 4.1.27
documents suggest.
By the way, I am also using SQL Server 2000 and Microsoft's JDBC driver.
Derek
-Original Message-
From: King,Daniel [mailto:[EMAIL PROTECTED]
Sent: September 19, 2003 3:06 PM
To: Tomcat Users List
Subject: RE: SOLUTION!! -- Cannot load JDBC driver class 'null'
I see
On Fri, 12 Sep 2003 00:16, Ben Anderson wrote:
Ok, I know this topic has been posted many times, but I can't find anything
to help.
There is no help - its a bug. I tried posting a bug on Bugzilla, but I can't
find the bug any longer. I'm still running 4.0.4 because I can't easily move
to
On Fri, 12 Sep 2003 04:41, Ben Anderson wrote:
I moved the Resource and ResaourceParams tags to myApp.xml and put it
in the webapps folder(with the war). I'm still getting the exact same
errors.
More specifically, in 4.1.27 you can't define your JDBC resources in either
the DefaultContext or
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
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
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
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
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
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,
?
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
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
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
To: Tomcat Users List
Subject: Re: Cannot load JDBC driver class 'null' - Tomcat standalone
4.1. 27 w hen trying instantiate datasource object.
what JDK are you using?
Filip
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
attribute
'driverClassName'
and the localhost_log.xxx.txt (when it tries to use myDS):
java.sql.SQLException: Cannot load JDBC driver class 'null
Any help would be great - I've been trying everything - reloading with
different configurations about 50 times - looking through books, mailing
lists
://www.tux.org/pub/net/apache/dist/jakarta/tomcat-4/
Later,
Rober Wynkoop
-Original Message-
From: Ben Anderson [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 7:17 AM
To: [EMAIL PROTECTED]
Subject: Cannot load JDBC driver class 'null'
Ok, I know this topic has been posted many times
I meant to say I can't delete the ../common/lib/classes12.jar when TomCat is
running.
Blip,
Robert Wynkoop
-Original Message-
From: Wynkoop, Robert M
Sent: Thursday, September 11, 2003 7:54 AM
To: 'Tomcat Users List'
Subject: RE: Cannot load JDBC driver class 'null'
I'm having
-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Cannot load JDBC driver class 'null'
Date: Thu, 11 Sep 2003 08:57:35 -0400
I meant to say I can't delete the ../common/lib/classes12.jar when TomCat
is
running.
Blip,
Robert Wynkoop
-Original
]
Subject: RE: Cannot load JDBC driver class 'null'
I have the jar in $CATALINA_HOME/common/lib
here's my info:
Server Information
Tomcat Version JVM Version JVM Vendor OS Name OS Version
OS
Architecture
Apache Tomcat/4.1.241.4.1_02-b06Sun Microsystems Inc. Windows 2000
Message-
From: Ben Anderson [mailto:[EMAIL PROTECTED]
Sent: 11 September 2003 13:17
To: [EMAIL PROTECTED]
Subject: Cannot load JDBC driver class 'null'
Ok, I know this topic has been posted many times, but I can't find anything
to help.
I have OracleDriver in [$CATALINA_HOME]/common/lib
:
org.apache.jasper.JasperException: Exception retrieving attribute
'driverClassName'
and the localhost_log.xxx.txt (when it tries to use myDS):
java.sql.SQLException: Cannot load JDBC driver class 'null
Any help would be great - I've been trying everything - reloading with
different
'
Subject: RE: Cannot load JDBC driver class 'null' - Tomcat standalone
4.1. 27 w hen trying instantiate datasource object.
If you use oracle jdbc driver, put classes12.jar in common/lib
-Original Message-
From: Wynkoop, Robert M [mailto:[EMAIL PROTECTED]
Sent: September 10, 2003 6:06 PM
docs?
Later,
Robert Wynkoop
-Original Message-
From: Kevin Passey [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 8:26 AM
To: 'Tomcat Users List'
Subject: RE: Cannot load JDBC driver class 'null'
Rather than changing your server XML create an xml file in your webapps
Message-
From: Wynkoop, Robert M [mailto:[EMAIL PROTECTED]
Sent: 11 September 2003 14:54
To: 'Tomcat Users List'
Subject: RE: Cannot load JDBC driver class 'null' and
org.apache.jasper.Ja sperException: Exception retrieving attribute
'driverClassName'
I thought about this and then went
To: Tomcat Users List
Subject: Re: Cannot load JDBC driver class 'null' - Tomcat standalone
4.1. 27 w hen trying instantiate datasource object.
Are you declaring the JNDI resource in DefaultContext or with
ResourceLink? if yes, try with a normal Context and Resource.
Regards,
_
Manolo
I don't see your comments about myDS and fsaDS. Can you echo them again.
:)
Thanks,
Robert Wynkoop
-Original Message-
From: Kevin Passey [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 8:55 AM
To: 'Tomcat Users List'
Subject: RE: Cannot load JDBC driver class 'null
]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Cannot load JDBC driver class 'null' and org.apache.jasper.Ja
sperException: Exception retrieving attribute 'driverClassName'
Date: Thu, 11 Sep 2003 10:06:12 -0400
I don't see your comments about myDS
-
From: Ben Anderson [mailto:[EMAIL PROTECTED]
Sent: September 11, 2003 8:17 AM
To: [EMAIL PROTECTED]
Subject: Cannot load JDBC driver class 'null'
Ok, I know this topic has been posted many times, but I can't find anything
to help.
I have OracleDriver in [$CATALINA_HOME]/common/lib
here's my
, 2003 9:27 AM
To: Tomcat Users List
Subject: Re: Cannot load JDBC driver class 'null' - Tomcat standalone
4.1. 27 w hen trying instantiate datasource object.
Are you declaring the JNDI resource in DefaultContext or with
ResourceLink? if yes, try with a normal Context and Resource.
Regards
,
Robert Wynkoop
-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 9:27 AM
To: Tomcat Users List
Subject: Re: Cannot load JDBC driver class 'null' - Tomcat standalone
4.1. 27 w hen trying instantiate datasource object.
Are you
-auth
/resource-ref
-Original Message-
From: Ben Anderson [mailto:[EMAIL PROTECTED]
Sent: September 11, 2003 8:17 AM
To: [EMAIL PROTECTED]
Subject: Cannot load JDBC driver class 'null'
Ok, I know this topic has been posted many times, but I can't find anything
to help.
I have OracleDriver
?
P.S. - So moving the resources to the webApp context did fix my problem.
Later,
Robert Wynkoop
-Original Message-
From: Wynkoop, Robert M
Sent: Thursday, September 11, 2003 10:53 AM
To: 'Tomcat Users List'
Subject: RE: Cannot load JDBC driver class 'null' - Tomcat standalone
4.1. 27
Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=0/200
config=C:\web\Tomcat4.1\conf\jk2.properties
Cannot load JDBC driver class 'null'
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method
If you use oracle jdbc driver, put classes12.jar in common/lib
-Original Message-
From: Wynkoop, Robert M [mailto:[EMAIL PROTECTED]
Sent: September 10, 2003 6:06 PM
To: Tomcat Mailing List (E-mail)
Subject: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1.27 w
hen trying
: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 5:11 PM
To: 'Tomcat Users List'
Subject: RE: Cannot load JDBC driver class 'null' - Tomcat standalone
4.1. 27 w hen trying instantiate datasource object.
If you use oracle jdbc driver, put classes12.jar in common/lib
what JDK are you using?
Filip
- Original Message -
From: Wynkoop, Robert M [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 3:14 PM
Subject: RE: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1.
27 w hen trying instantiate
the next error: Cannot load JDBC driver class 'null'.
After some troubleshooting, I finnaly got with two problem causes:
1. For some reason, Mysql's JDBC Driver tries to connect to
localhost.localdomain. Which means, that when you specify into the
connection string (in my case) jdbc:mysql://localhost
-Original Message-
From: Michael Holly [mailto:[EMAIL PROTECTED]
Sent: 18 June 2003 17:21
To: [EMAIL PROTECTED]
Subject: java.sql.SQLException: Cannot load JDBC driver class 'null'
In trying to make the move to automate my testing I have come up
against a problem.
First some background.
I am
I cannot seem to set up a datasource correctly. I get
the java.sql.SQLException: Cannot load JDBC driver
class 'null' exception. I have read numerous threads
with things to check, but still get it. I deploy my
application using ant and the catalina-ant.jar.
I have the mysql jar in the /common/lib
, and the relevant server.xml code.
I appreciate all help that you can offer.
Rob
**Log
java.sql.SQLException: Cannot load JDBC driver class 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:529
On Sat, 24 May 2003 06:53, Rob Casteen wrote:
You need this first:
Resource name=jdbc/TestDB auth=Container
type=javax.sql.DataSource/
***Server.xml additions:
ResourceParams name=TestDB
Should be ResourceParams name=jdbc/TestDB
Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 1:58 PM
To: [EMAIL PROTECTED]
Subject: java.sql.SQLException: Cannot load JDBC driver class 'null'
Tomcat version - 4.1.12
MySQL version - 3.23.55-nt
OS - WinNT
JDK - 1.4.1_01
I have researched this problem
]
Gesendet: Dienstag, 11. Marz 2003 22:58
An: [EMAIL PROTECTED]
Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null'
Tomcat version - 4.1.12
MySQL version - 3.23.55-nt
OS - WinNT
JDK - 1.4.1_01
I have researched this problem on the internet and in the
documentation for
Tomcat
. Marz 2003 22:58
An: [EMAIL PROTECTED]
Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null'
Tomcat version - 4.1.12
MySQL version - 3.23.55-nt
OS - WinNT
JDK - 1.4.1_01
I have researched this problem on the internet and in the
documentation for
Tomcat, and I still
: Cannot load JDBC driver class 'null'
Gerlinde,
Thanks for the response!
I placed my jdbc jar file under common/lib, but I still get the same error
message.
If you or anyone else has any other ideas, that would be greatly
appreciated.
Gerlinde Fischer
-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 6:04 PM
Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
Gerlinde,
Thanks for the response!
I placed my jdbc jar file under common/lib, but I still get the same error
message.
If you
Did you define the driver in you classpath?
/ Clarence Dahlin
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: den 12 mars 2003 13:49
To: [EMAIL PROTECTED]
Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class
'null'
I put it under server/lib
]
clarence.dahlin cc:
@pitch.se Subject: RE: AW: java.sql.SQLException:
Cannot load JDBC driver class
'null
Hi Kevin,
have you started the tomcat afterwards.
Regards Gerlinde
-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 12. Marz 2003 13:34
An: [EMAIL PROTECTED]
Betreff: Re: AW: java.sql.SQLException: Cannot load JDBC driver class
'null
sorry ..you mail arrive in mail address...
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 2:20 PM
Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
No I did not, but now I do and I still receive the same
Hi,
Are you looking in a load-on-startup servlet
Pratt.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 6:50 PM
Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
No I did not, but now I do and I still
servlet
Pratt.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 6:50 PM
Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
No I did not, but now I do and I still receive the same error.
I have printed out my
please control whern send a mail
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 2:37 PM
Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
1. starting from tomcat-home\bin, I type in the command - startup
: Re: AW:
java.sql.SQLException: Cannot load JDBC driver class
'null'
03/12/1998 07:42
when you send a mail [EMAIL PROTECTED] this mail arrive at me
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 2:43 PM
Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
'please control whern send a mail'
I'm
: Re: AW:
java.sql.SQLException: Cannot load JDBC driver class
'null'
03/12/1998 07:49
Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 11. Marz 2003 22:58
An: [EMAIL PROTECTED]
Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null'
Tomcat version - 4.1.12
MySQL version - 3.23.55-nt
OS - WinNT
JDK - 1.4.1_01
I have researched
]
Sent: Tuesday, March 11, 2003 1:58 PM
To: [EMAIL PROTECTED]
Subject: java.sql.SQLException: Cannot load JDBC driver class 'null'
Tomcat version - 4.1.12
MySQL version - 3.23.55-nt
OS - WinNT
JDK - 1.4.1_01
I have researched this problem on the internet and in the documentation for
Tomcat, and I
://localhost:8080/dbtest/test.jsp
Here is the error I receive:
java.sql.SQLException: Cannot load JDBC driver class 'null' at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:529)
Referencing this URL -
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource
(Failure.);
/snip
At 17:31 2003-02-06 +0100, you wrote:
Yes,
HSQLDB.jar
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 17:25
To: [EMAIL PROTECTED]
Subject: RE: Cannot load JDBC driver class 'null' , again
Is your jdbc driver
= ds.getConnection();
//value of DS is org.apache.commons.dbcp.BasicDataSource@b6548
//and here is exception in Connection conn = ds.getConnection();
java.sql.SQLException: Cannot load JDBC driver class 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:529
= ds.getConnection();
//value of DS is org.apache.commons.dbcp.BasicDataSource@b6548
//and here is exception in Connection conn = ds.getConnection();
java.sql.SQLException: Cannot load JDBC driver class 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java
Yes,
HSQLDB.jar
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 17:25
To: [EMAIL PROTECTED]
Subject: RE: Cannot load JDBC driver class 'null' , again
Is your jdbc driver in jar file?
Regards,
PQ
This Guy Thinks He Knows
From examining this list, it seems that a number of folk have tried setting
up JNDI datasources as per the Tomcat HOWTOs, but have had this error
returned. I've also noticed that it's been logged in Bugzilla as a bug.
Does anyone know of a fix/workaround for the issue..? Can we expect it to
be
2003-02-06 +0100, you wrote:
Yes,
HSQLDB.jar
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 17:25
To: [EMAIL PROTECTED]
Subject: RE: Cannot load JDBC driver class 'null' , again
Is your jdbc driver in jar file?
Regards,
PQ
hello
I have run into that problem too, I defined a datasource and put driver and common/lib
and defined resource-ref in web.xml
of my web. app. but if throws exception when I try to get a connection from
datasource I have found.
I tried to do it at home with different database with the same
-
From: Maris Orbidans [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 11:03 AM
To: Tomcat Users List
Subject: Cannot load JDBC driver class 'null'
hello
I have run into that problem too, I defined a datasource and put driver and
common/lib and defined resource-ref in web.xml
of my web
-Original Message-
From: Maris Orbidans [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 11:03 AM
To: Tomcat Users List
Subject: Cannot load JDBC driver class 'null'
hello
I have run into that problem too, I defined a datasource and
put driver and
common/lib and defined
] JDBCExceptionReporter.logExceptions(42) | Cannot load JDBC
driver class 'null'
WARN [main] SessionFactoryImpl.init(163) | Could not obtain connection
metadata
java.sql.SQLException: Cannot load JDBC driver class 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
=driverClassName,content=net.sourceforge.jtds.jdbcx.TdsDat
aSource},{type=username,content=webuser}]
Here is the error from catalina.out:
new context
ctx lookup
gonna try a ds.getConnection
java.sql.SQLException: Cannot load JDBC driver class 'null
I have experience that before, but that was my fault rather than tomcat.
I put the source jar instead of the driver binary. Other than that DBCP
worked as described in the tomcat documents. Cannot load JDBC driver
class null usually means that it couldn't find the jdbc driver that you
I have experience that before, but that was my fault rather than tomcat.
I put the source jar instead of the driver binary. Other than that DBCP
worked as described in the tomcat documents. Cannot load JDBC driver
class null usually means that it couldn't find the jdbc driver that you
and web.xml and compare
them to the examples. That's where my driver class 'null' problem arose.
Shawn
- Original Message -
From: David Durst [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 10, 2003 6:43 PM
Subject: Re: Cannot load JDBC driver class 'null'
I have experience
Has anyone else experienced this
I have read a couple of posts that I found off google,
and basically what they are saying is non of the information in
the server.xml file is being passed to the Datasource or something of
that nature.
The suggested fix was to hardcode everything but
worked as described in the tomcat documents. Cannot load JDBC driver
class null usually means that it couldn't find the jdbc driver that you
specified in the server.xml .
that is strange cause I have it in
$CATALINA_HOME/common/lib
And it is exactly the same class that I used when I
=username,content=webuser}]
Here is the error from catalina.out:
new context
ctx lookup
gonna try a ds.getConnection
java.sql.SQLException: Cannot load JDBC driver class 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:529
Humm...well what do you know..I now have it working!
I was using a WARP Connector using mod_webapp.
I just configured a mod_jk connector instead
and now it works..maybe this is a WARP bug issue??
http://issues.apache.org/bugzilla/show_bug.cgi?id=6048
I am curious to know if anybody else
debug=5 reloadable=true crossContext=true
**Notice the D vs d in the context path**
Then I get a Cannot load JDBC driver class 'null' error message
With the root context, where I had my problem, it was confusing because
I needed path=/root and not path=/. Also, the error message
crossContext=true
but I make a mistake and use
Context path=/dBTest docBase=DBTest
debug=5 reloadable=true crossContext=true
**Notice the D vs d in the context path**
Then I get a Cannot load JDBC driver class 'null' error message
With the root context, where I had my problem
context
ctx lookup
gonna try a ds.getConnection
java.sql.SQLException: Cannot load JDBC driver class 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSour
ce.java:529)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.
java:312
Has anyone else experienced this
I have read a couple of posts that I found off google,
and basically what they are saying is non of the information in
the server.xml file is being passed to the Datasource or something of
that nature.
The suggested fix was to hardcode everything but that kind
But when I try to use it I get the following error:
java.lang.Exception: java.sql.SQLException: Cannot load
JDBC driver class 'null'
Tomcat changed by itself the server.xml with many things
like:
Context
className=org.apache.catalina.core.StandardContext
cachingAllowed=true
charsetMapperClass
On Wed, 8 Jan 2003 [EMAIL PROTECTED] wrote:
Date: Wed, 08 Jan 2003 07:54:31 -0500
From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Resource - Cannot load JDBC driver class 'null'
Hello,
I created a DataSource(jdbc/SAA) through Tomcat
Hi all,
I have found a solution to this problem. Its by no means elegant but if you get as
desperate as I have got then you may wish to do the same.
It appears that none of the information that you specify in your server.xml gets
through to the actual dbcp stuff, don't ask me why. So what I
trace...
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.java:312)
at org.apache.jsp.artists_jsp._jspService
= ds.getConnection(); Any ideas? Thanks
The stack trace...
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.java:312
The stack trace...
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.java:312
Hello list!
Chandolu, Yuva wrote:
Hi,
I get the error org.apache.jasper.JasperException: Cannot load JDBC
driver class 'null'.
What is this and how can I proceed from here? I have Tomcat 4.1.12,
JDK1.4.1 installed and have DBCP 1.0, Pool 1.0, Collections 2.0, and
Oracle's jdbc driver
Hi,
I get the error org.apache.jasper.JasperException: Cannot load JDBC driver
class 'null'.
What is this and how can I proceed from here? I have Tomcat 4.1.12, JDK1.4.1
installed and have DBCP 1.0, Pool 1.0, Collections 2.0, and Oracle's jdbc
driver classes12.jar(classes12.zip renamed to .jar
);
Hope this helps.
-Original Message-
From: Roberto Bouza [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 04. Dezember 2002 23:05
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: java.sql.SQLException: Cannot load JDBC driver class 'null'
Hi.
I think I have all the configuration fine
-
From: Roberts, Eric [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 9:45 AM
Subject: RE: java.sql.SQLException: Cannot load JDBC driver class 'null'
Roberto,
How are you instantiating your datasource?
You need something like:
import
1 - 100 of 123 matches
Mail list logo