Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat. dbcp.dbcp.BasicDataSource error but using javax.sql.DataSource

 
Shilpa Tendulkar
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am stuck with this particular error for long time now. I am not able to connect to database.
I tried to search on web and checked my web.xml, server.xml and context.xml, but everythings seems in order to me.
I am using tomcat 5.5.17, JDK1.6 and mysql-connector-java5.0.4
Stack trace is


DB part in web.xml is


DB part in server.xml is


DB part in context.xml


Any help will be highly appreicated! thank you
 
karthikeyan Chockalingam
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont find anything wrong with the configuration [though the one in server.xml without Context is not required]. Also please ensure you create the Context to lookup datasource as mentioned in this link [last section]

http://theasolutions.com/tutorials/tomcatds.jsp
[ June 05, 2008: Message edited by: karthi keyan ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic