This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Tomcat and the fly likes tomcat. dbcp.dbcp.BasicDataSource error but using javax.sql.DataSource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat. dbcp.dbcp.BasicDataSource error but using javax.sql.DataSource" Watch "tomcat. dbcp.dbcp.BasicDataSource error but using javax.sql.DataSource" New topic
Author

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

Shilpa Tendulkar
Ranch Hand

Joined: Jul 29, 2001
Posts: 75
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


SCJP5
karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
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 ]

http://www.skillassert.com


 
jQuery in Action, 2nd edition
 
subject: tomcat. dbcp.dbcp.BasicDataSource error but using javax.sql.DataSource