8

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?

Community
  • 1
  • 1
user1143343
  • 255
  • 1
  • 5
  • 14

2 Answers2

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
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