DataSource won't load driver.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Chris_Marks
Posted On:   Friday, October 11, 2002 10:21 AM

I am running Tomcat 4.1.12(Standalone) and get an SQLException error: Cannot load JDBC driver class 'null' My web.xml looks like: DB Connection jdbc/oracle8i javax.sql.DataSource Container My server.xml file looks like: user sa password pwd driverName jdbc:oracle:thin:@SERVER:1521:DB driverClassName oracle.jdbc.driver.OracleDriver The drivers are in [tomcat]commonlib I know the drivers work, I can use DriverManager, but I really need to use DataSource. Can anyone help? Thanks, Chris    More>>

I am running Tomcat 4.1.12(Standalone) and get an SQLException error:

Cannot load JDBC driver class 'null'


My web.xml looks like:
			

DB Connection
jdbc/oracle8i
javax.sql.DataSource
Container


My server.xml file looks like:
			




user
sa


password
pwd


driverName
jdbc:oracle:thin:@SERVER:1521:DB


driverClassName
oracle.jdbc.driver.OracleDriver






The drivers are in [tomcat]commonlib


I know the drivers work, I can use DriverManager, but I really need to use DataSource.

Can anyone help?

Thanks, Chris    <<Less

Re: DataSource won't load driver.

Posted By:   Bernd_Huelsebusch  
Posted On:   Thursday, November 28, 2002 08:18 AM

Hi Chris, I have the same error. Did you find a solution ?
Regards, Bernd Hülsebusch

Re: DataSource won't load driver.

Posted By:   Chris_Buckley  
Posted On:   Friday, October 18, 2002 09:14 AM

Hey Everything looks good. Only difference I have are

description and some connection settings and

validationQuery. Mine is working just fine I can

do look ups.















validationQuery


select * from

user









maxWait


5000








maxActive


4








password


value








url


jdbc:oracle:thin:@SERVER:1521:DB








driverClassName
oracle.jdbc.driver.OracleDriver








maxIdle


2








username


value







my format sucks sorry hope it helps.
About | Sitemap | Contact