Forums Register Login

MySQL connection pooling (tomcat) problem

+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
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.
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1246 times.
Similar Threads
how to run a servlet
Pagination in Servlets from a Resultset
multipart download servlet
javax. servlet.Servlet Exception: Initialization failed, Unable to get DB connection
Connection Pooling
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:40:20.