Reputation: 4689
Glassfish-ApplicationServer comes with a bean-validator.jar, which itself includes / was built with hibernator-validator 5.0.0.Final
// From glassfish4-startup:
2014-05-13T14:49:37.260+0200|Information: HV000001: Hibernate Validator 5.0.0.Final
I want use another version of hibernate-valditor. How can I achieve this?
What happened so far..
Glassfish4-source is available at svn.java.net, but I cannot find anything close to a package "bean-validator". The only thing mentionable is nucleus/core/kernel/src/main/java/org/glassfish/kernel/bean_validator/, but that seem's to be a dead end.
Stackoverflow-Question How to upgrade the hibernate-validator 4.3.0.Final to the Glassfish 3.1.2? brings us to a good blog-article http://peter-butkovic.blogspot.de/2012/11/glassfish-311-oss-with-hibernate.html. In this blog-article, svn.java.net/svn/hk2~svn/branches/hk2-gf-3.1.1/ is mentioned. I don't know what that is, or where something similar for glassfish4 is.
Upvotes: 2
Views: 975
Reputation: 19020
You may refer to this question as a starting point.
It's not 100% up-to-date though as it applies to Hibernate Validator 4.3. But actually I'd expect the update from 5.0 to 5.1 to be even easier as no new dependencies have been added, so you'd basically have to update the OSGi bundle from Glassfish with the latest HV JAR (and update the manifest to export the new "valuehandling" package if you want to make use of this feature).
Upvotes: 1