Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Spring configuration error

 
Ranch Hand
Posts: 590
6
jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am learning spring from the sratch. I am following Spring in Action. I am stuck at the first example itself. Here are the classes:





and this is the configuration what I am using.



but when i run, this is what i am getting as error:



What is wrong here? the error is not clear to me.
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you running the application? Which JVM are you using? Which version of Spring?

I tried looking up what line of code is at DefaultListableBeanFactory.java:107. I can;t be sure unless I know exact version of Srping. However, looking at the code around that line, it could be that the classloader is null.. which would be odd. It could be some problem with your installation of Java or the way you are running Java
 
s ravi chandran
Ranch Hand
Posts: 590
6
jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jayesh A Lalwani wrote:How are you running the application? Which JVM are you using? Which version of Spring?

I tried looking up what line of code is at DefaultListableBeanFactory.java:107. I can;t be sure unless I know exact version of Srping. However, looking at the code around that line, it could be that the classloader is null.. which would be odd. It could be some problem with your installation of Java or the way you are running Java



Thanks for reply. I am using java 1.6.0_31 and spring version is: 3.2.5. I am running the code in eclipse.
 
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic