aspose file tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply 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: 17234
    
    1

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
 
Similar Threads
Spring 3 and Hibernate
Dialect class not found: org.hibernate.dialect.MySQLDialect
Unable to connect to database
config spring3+hibernate
Spring w/ Hibernate