tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Hemingway" <>
Subject A solution: java.sql.SQLException: Cannot load JDBC driver class 'null'
Date Tue, 07 Jan 2003 12:20:26 GMT
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 did was crack open the source and hardcode
all the details into org.apache.commons.dbcp.BasicDataSource. Then I rebuilt, redeployed and
everything works perfectly. I know this is not scalable or pretty but it is a solution that
*will* work. The only question I have left remaining is that is it a security issue having
the DB password wrapped up in that jar? (I can't see one) assuming that the server is never
compromised. Thanks everybody for all the help given over the past couple of days, it was
very much appreciated.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message