[
http://opensource.atlassian.com/projects/hibernate/browse/BVAL-200?page=c...
]
Sreekar Muddu commented on BVAL-200:
------------------------------------
The path to validation.xml is hard coded in
org.hibernate.validation.xml.ValidationXmlParser.
private static final String VALIDATION_XML_FILE = "META-INF/validation.xml";
Any reason why it has to be under WEB-INF/classes/META-INF?
Also, this is not a Minor bug - please change the Priority.
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira