File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes MySQL connection pooling (tomcat) problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "MySQL connection pooling (tomcat) problem" Watch "MySQL connection pooling (tomcat) problem" New topic

MySQL connection pooling (tomcat) problem

Pavlos Chatzidimitriou

Joined: Aug 18, 2008
Posts: 10
Hi all i just started learning servlets and i want to make a program in order to understand database connection pooling in tomcat.My problem is that when i run the servlet i created i get this error :

And that from tomcat log from netbeans :

.I configured tomcat server.xml file like this :
This is the resource reference i have in my web app web.xml file :

And this is my servlet class :

Any suggestions?
[ October 17, 2008: Message edited by: Pavlos Chatzidimitriou ]
osman cinar eren
Ranch Hand

Joined: Jan 25, 2005
Posts: 78

try to create context.xml file udner META-INF directory.(at same level of WEB-INF)
in this file, enter:
<Context>your resource definition above where you put in server.xml</Context>

hope this helps.

I agree. Here's the link:
subject: MySQL connection pooling (tomcat) problem
jQuery in Action, 3rd edition