• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Cannot find class [org....UserService] for bean with name 'userService' defined in appl.context.xml

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Can somebody tell me why I got this error below ?

Cannot find class [org.test.vsdb0.UserService] for bean with name 'userService' defined in class path resource [applicationcontext.xml]

http://img560.imageshack.us/img560/779/image002d.png
http://pastebin.com/ysTt7nKB


How can I fix it ?

Thanks ahead.

Cs

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Always read the exceptions for Spring from the bottom and find the actual root cause. In your case that is

java.lang.ClassNotFoundException: org.test.vsdb0.UserService

That is a ClassNotFoundException, so is your UserService class in your classpath? Loaded by the classloader?

Mark
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic