[
http://opensource.atlassian.com/projects/hibernate/browse/HV-523?page=com...
]
Hardy Ferentschik commented on HV-523:
--------------------------------------
What is the point of _orthank-sample.zip_? Does it contain a test case or some patches? I
tried to a simple _mvn clean test_, but it does work, because some dependencies cannot be
resolved.
I am also not sure what exactly you are asking for. The latest HV version defines the OSGi
metadata. Regarding boostrapping, you are right that you need a custom OSGi aware
_ValidationProviderResolver_. This, however, is a problem is the Bean Validation
specification which ships with a simple default resolver. For custom environment you need
to write your own resolver. This is intended.
Hibernate validator must be a fragment of javax.validation and should
easily plug with extenders
------------------------------------------------------------------------------------------------
Key: HV-523
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-523
Project: Hibernate Validator
Issue Type: Bug
Components: engine
Affects Versions: 4.2.0.Final
Environment: Osgi
Reporter: Charlie Mordant
Priority: Blocker
Labels: LocalValidatorFactoryBean, OSGI, Spring-DM, validation
Attachments: orthank-sample.zip
It's for now about impossible to plug hibernate validators in an osgi environment
with extenders like spring-dm.
I've found multiple blog entries explaining the bootstrapping issue of validation
api.
http://katastrophos.net/magnus/blog/2009/07/18/having-fun-with-jsr-303-be...
http://www.jasonday.net/content/jsr-303-bean-validation-and-spring-mvc-sl...
I'm not an OSGI expert, so I think you'll better understand the problem than me.
The problem remains that validation api is not usable in a valuable osgi environment for
now (spring-dm, blueprint...).
Regards, Charlie
Thank you to investigate on this problem, I give you a sample project in order to test it
('mvn pax:provision -Dframework=equinox' in order to run the server).
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira