Announcement Announcement Module
Collapse
No announcement yet.
[ResourceBundleMessageSource] ResourceBundle [messages] not found for MessageSource: Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • [ResourceBundleMessageSource] ResourceBundle [messages] not found for MessageSource:

    Hi

    I realy don't what what the problem here.
    Spring security failed to authenticate (with is normal)
    Despite that, I am unable to get the error security message

    I am using the last version of spring 3 and spring security 3.

    19:22:17,329 WARN [ResourceBundleMessageSource] ResourceBundle [messages] not found for MessageSource: Can't find bundle for base name messages, locale fr
    19:22:21,647 WARN [ResourceBundleMessageSource] ResourceBundle [messages] not found for MessageSource: Can't find bundle for base name messages, locale fr
    Regards

  • #2
    Hi

    I had the same problem, but tracked it down to:
    Code:
    // this returns null
    getClass().getResource("xxx.properties")
    // this returns proper URL
    getClass().getResources("xxx.properties").next()
    Spring invokes:
    Code:
    java.util.ResourceBundle.getBundle(basename, locale, getBundleClassLoader());
    I use jdk1.6.0_18 and it stopped working with Spring-3.0.0. But I'm not sure whether it's Spring or JDK fault.

    Grzegorz Grzybek

    Comment


    • #3
      Did you find a solution

      the spring ResourceBundleMessageSource seems to use the jdk ResourceBundle.
      This jdk ResourceBundle is not able to find the message perperties file.

      It seems to be possible to define the classloader properties.
      The class loader use if the tomcal class loader (org.jboss.web.tomcat.tc5.WebCtxLoader).

      Is there any spring classloader that we can use ?

      Comment


      • #4
        Strange... It works now...

        Comment

        Working...
        X