[hibernate-issues] [Hibernate-JIRA] Created: (BVAL-200) Validator cannot find validation.xml unless is placed in /WEB-INF/classes/META-INF

Cris Webber (JIRA) noreply at atlassian.com
Thu Feb 11 12:34:34 EST 2010


Validator cannot find validation.xml unless is placed in /WEB-INF/classes/META-INF
----------------------------------------------------------------------------------

                 Key: BVAL-200
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-200
             Project: Bean Validation
          Issue Type: Bug
          Components: ri-general - obsolete go to HValidator
         Environment: Java SE 1.5.0_10; Hibernate Validator 4.0.2.GA.
            Reporter: Cris Webber
            Priority: Minor


Hibernate Validator requires that the validation.xml file is placed in the META-INF directory in order to load it. 

In the case of having a WAR file, placing the validation.xml file in /META-INF (at the same level as the WEB-INF directory) does not work, as Hibernate Validator cannot find the file there. Placing the file in /WEB-INF/classes/META-INF worked fine. I believe this is just a workaround and Hibernate Validator should be able to find validation.xml in /META-INF. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list