File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "MySQL connection pooling (tomcat) problem" Watch "MySQL connection pooling (tomcat) problem" New topic
Author

MySQL connection pooling (tomcat) problem

Pavlos Chatzidimitriou
Greenhorn

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

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.


SCJP/SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MySQL connection pooling (tomcat) problem
 
Similar Threads
how to run a servlet
Connection Pooling
multipart download servlet
Pagination in Servlets from a Resultset
javax. servlet.Servlet Exception: Initialization failed, Unable to get DB connection