aspose file tools*
The moose likes Other Application Frameworks and the fly likes Spriing : Context initialization failing due to inner class usage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spriing : Context initialization failing due to inner class usage" Watch "Spriing : Context initialization failing due to inner class usage" New topic
Author

Spriing : Context initialization failing due to inner class usage

Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276
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.


Regards,
Jignesh

The Art Of Life Is To Know When To Be Useless And When To Be Useful - CHUANG TZU
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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.


[My Blog]
All roads lead to JavaRanch
 
 
subject: Spriing : Context initialization failing due to inner class usage