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

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue Sep 27 09:04:37 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/BVAL-200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bernard resolved BVAL-200.
-----------------------------------

    Resolution: Won't Fix

That's the intended behavior. We use the same logic Java Persistence uses.

> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list