I\'m developing a spring application which uses tomcat server managed connection pool.
I defined datasource in tag in context.xml of tomcat: (i am using spring 2.0.
In Eclipse: make sure you have the right context.xml file. This especially valid when you have installed multiple servers.
In your Servers tab -> Right click on your deployed web module -> Browse Deployment Location -> ../conf/context.xml. Make sure this is the file you want to be using.
I hope this saves you some time, as I wasted some time on it.