I'm having trouble with JDBC Connection Pooling, I've done all the same with explained here: JNDI Resources HOW-TO, and here is also question (the same configuration with mine) regarding this topic which has not been resolved, I think.
What else should I consider?
Asked
Active
Viewed 4.3k times
8

Community
- 1
- 1

user1143343
- 255
- 1
- 5
- 14
-
5Please post the server.xml. context file and the stacktrace. – Michael Jan 13 '12 at 11:27
2 Answers
19
I hope you have done the ResourceLink configuration to your webapp, too.
<Context>
...
<ResourceLink global="jdbc/MyDS" name="jdbc/MyDS" type="javax.sql.DataSource" />
...
</Context>

adarshr
- 61,315
- 23
- 138
- 167
-
Thank you, yes I had done it as well... besides that in my conf/server.xml I put additional
with attributes – user1143343 Jan 13 '12 at 11:14
3
I had this error when the JDBC driver was deleted from classpath. In my setup, Tomcat expected libraries in a special directory, which was filled by Maven executing a special target. Whenever I cleaned and forgot to execute the Maven's target prior to running Tomcat, I had precisely this error.

MaDa
- 10,511
- 9
- 46
- 84