Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error while instantiating JdbcTemplate in spring-config.xml?  RSS feed

 
Vish Joshi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
here is the spring-config.xml i am using-
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
apurav chauhan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you migrating the spring to some other version.
Check this:
https://jira.springsource.org/browse/SPR-4823
 
Vish Joshi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have resolved the problem..it was commons-logging.jar's version problem!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!