• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic