Announcement Announcement Module
Collapse
No announcement yet.
STS unable to load ResourceBundles Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • STS unable to load ResourceBundles

    Hi,

    Ever since moving to STS from Websphere I've been unable to load a resource bundle using

    Code:
    ResourceBundle.getBundle(basename, locale, getBundleClassLoader());
    This method is called in the org.springframework.context.support.ResourceBundle MessageSource class. Spring is logging the following statement:

    WARN org.springframework.context.support.ResourceBundle MessageSource - ResourceBundle [/WEB-INF/themes/ny] not found for MessageSource: Can't find bundle for base name /WEB-INF/themes/ny, locale en

    even though the theme properties files are clearly in the right place. I noticed that the class loader passed in to the getBundle method is TomcatAspectJWeavingClassLoader. Do I need to wire in a different class loader?? Interestingly, my ReloadableResourceBundleMessageSource properties files are all working fine.

    Thanks for any help that anyone can provide!
    Tim
Working...
X