aspose file tools*
The moose likes Spring and the fly likes Error while instantiating JdbcTemplate in spring-config.xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Error while instantiating JdbcTemplate in spring-config.xml?" Watch "Error while instantiating JdbcTemplate in spring-config.xml?" New topic
Author

Error while instantiating JdbcTemplate in spring-config.xml?

Vish Joshi
Greenhorn

Joined: Dec 22, 2010
Posts: 16
Hi,
here is the spring-config.xml i am using-
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Here is your error

Caused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.ListableBeanFactory.getBeanDefinitionNames(Ljava/lang/Class;)

Which to me means that your configuration looks fine. But how are you starting up Spring. What does your code look like.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
apurav chauhan
Greenhorn

Joined: Aug 07, 2010
Posts: 21
Are you migrating the spring to some other version.
Check this:
https://jira.springsource.org/browse/SPR-4823
Vish Joshi
Greenhorn

Joined: Dec 22, 2010
Posts: 16
I have resolved the problem..it was commons-logging.jar's version problem!
 
 
subject: Error while instantiating JdbcTemplate in spring-config.xml?
 
Similar Threads
Spring AOP HELP needed
Spring DI help
java.lang.VerifyError,runtime exception,can anyone explain when or why get this runtime exception
Getting Error in setting property values
Spring+Hibernate can't create SessionFactory bean