Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1185

Classpath issue breaks localization in Hibernate Validator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.0.0.CR1
    • EE
    • None

    Description

      If you want Hibernate Validator to produce internationalized / localized messages you need properties files like e.g. ValidatorMessages_en.properties or ValidatorMessages_de.properties. These properties files must be in the Classpath. Thus if you need them in an EJB module, they are placed in the root directory of the EAR.

      According to the language the right file is picked up, and the right hand side has the localized message belonging to the key on the left hand side. However, if no key is found or if the properties file isn't found, then the localized message is just "

      {key}

      " aka the template message.

      I'll attach a testcase to reproduce this issue that ValidatorMessage_xx.properties isn't found in the Classpath.

      Attachments

        Activity

          People

            jaikiran Jaikiran Pai (Inactive)
            juergen.zimmermann Juergen Zimmermann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: