• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spriing : Context initialization failing due to inner class usage

 
Jignesh Gohel
Ranch Hand
Posts: 276
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a bean which i want to validate using my Validator implementation.
This Validator implementation i have declared as inner class.
But a context initialization failed exception is occuring with the details as follows:




The code snippet from my app-servlet.xml is as follows :




My bean code snippet is as follows:




Can anybody please let me know where have i gone wrong???

Thanks.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To use an inner class as a bean, you have to make it static. And I'm not sure that making it protected will do. You'll probably have to make it public.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic