Results 1 to 4 of 4

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

  1. #1
    Join Date
    Oct 2007
    Posts
    142

    Default [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. #2
    Join Date
    Oct 2008
    Location
    Poland, Wrocław
    Posts
    429

    Default

    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

  3. #3
    Join Date
    Oct 2007
    Posts
    142

    Default 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 ?

  4. #4
    Join Date
    Oct 2008
    Location
    Poland, Wrocław
    Posts
    429

    Default

    Strange... It works now...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •