This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 17250
    
    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 - Two Laptop Bag - Tube Organizer
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