Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MySQL connection pooling (tomcat) problem

 
Pavlos Chatzidimitriou
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic