[hibernate-issues] [Hibernate-JIRA] Commented: (BVAL-200) Validator cannot find validation.xml unless is placed in /WEB-INF/classes/META-INF
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Mon Oct 18 09:49:51 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/BVAL-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38780#action_38780 ]
Emmanuel Bernard commented on BVAL-200:
---------------------------------------
This is how Java EE describe it. It has to be under META-INF/* and in the case of WARs, this directory has to be under WEB-INF/classes (I'd bet because of classpath visibility).
What's wrong with that exactly. Allowing other areas would make your app non portable.
> 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