This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Spring and the fly likes Exception starting Server while using Spring MVC 3.0, Mysql with JDBCTemplate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Exception starting Server while using Spring MVC 3.0, Mysql with JDBCTemplate" Watch "Exception starting Server while using Spring MVC 3.0, Mysql with JDBCTemplate" New topic
Author

Exception starting Server while using Spring MVC 3.0, Mysql with JDBCTemplate

Prashant Chindhade
Ranch Hand

Joined: Jan 19, 2011
Posts: 77
Hi everyone,

I need to configure JDBCTemplate in Spring MVC 3.0. It is throwing following exception.



i have app-servlet.xml like this.




I have put mysqlconnector.jar in WEB-INF/lib folder with commons-dbcp-1.4.jar also still it is giving me error.
can anyone help me to resolve this.

Thanks in advance
Prashant
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17276
    
    6

Either

Caused by: java.lang.ClassNotFoundException: org.apache.commons.pool.ObjectPool

is not in your class path.

Or you have two versions of it in your class path. So the jar for it twice, maybe different versions.

Mark


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception starting Server while using Spring MVC 3.0, Mysql with JDBCTemplate
 
jQuery in Action, 3rd edition