check whether you have the proper mysql jar file in your classpath. Also I don't think you should use InitialContext and lookup if you are working with Tomcat. We normally use these if we are doing Connection Pooling in an Application server.
Joined: Nov 14, 2000
Dear Rama Krishna,
Thanks for your reply.
It works when i use the context.xml file in the META-INF directory. But when i try to use by configering in the server.xml and web.xml as per the tomcat document it doen't work.