tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject SOLUTION!! -- Cannot load JDBC driver class 'null'
Date Fri, 19 Sep 2003 17:20:21 GMT
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 completely. Then I went to http://localhost:8080/admin
<http://localhost:8080/admin> , browsed to the context that I am writing my
app in, the full path from the tree being "Tomcat Server/Service
(Tomcat-Standalone)/Host (localhost)/Context(/myapp)/Resources/Data
Sources". I added the data source from there specifying the JNDI name,
driver class, URL, user and pass, etc. Then I did some tests with a jsp to
make sure it was really in my context (you may have to restart tomcat, I

Next I added the code back into my web.xml that is in the tutorial....

		<description>DB Connection</description>
		<res-ref-name>myData Source</res-ref-name>

And it works!!! I just have a new problem now of DBCP borrowObject failed:
String index out of range: -1, I suppose I'll figure that out too...

Good Luck and thanks to all who posted info on this,

View raw message