java.lang.ClassCastException: com.sample.web.CustomReloadableResourceBundleMessageSource cannot be cast to org.springframework.context.support.DelegatingMessageSourceThis error happens when Spring cannot find the bean and instead initializes a default. If you inspect DEBUG traces you will see that clearly.
Hence this is a classloader issue which in my case was due to the fact that I was not declaring the bean in the application context xml but rather in the spring servlet xml. It took me some hours to realize what was really happening.
No comments:
Post a Comment