-
1. Re: Resteasy hibernatevalidator provider not picked up as jboss module
ctomc Oct 30, 2012 7:02 AM (in response to andrei.serea)Hi,
how extactly do you define dependency?
you are probably missing importing of services.
instead of manifest.mf add jboss-deployment-structure.xml and add dependancy there together with service="import"
--
tomaz
-
2. Re: Resteasy hibernatevalidator provider not picked up as jboss module
andrei.serea Oct 30, 2012 1:37 PM (in response to ctomc)Thanks for your answer Tomaz! I have defined the dependency in Manifest.MF like this:
Manifest-Version: 1.0
Dependencies: org.jboss.resteasy.resteasy-hibernatevalidator-provider
Class-Path:
And that's the name I put in the module.xml also.
Is there a difference between the way the dependencies specified in MANIFEST are loaded from the ones mentioned in jboss-deployment-structure.xml?
/Andrei
-
3. Re: Resteasy hibernatevalidator provider not picked up as jboss module
nickarls Nov 1, 2012 5:44 AM (in response to andrei.serea)Does your directory structure match the dot-notation of the module name (plus the main dir)?
-
4. Re: Resteasy hibernatevalidator provider not picked up as jboss module
andrei.serea Nov 1, 2012 8:14 AM (in response to nickarls)Yes. I guess I wouldn't be able to do a successful Class.forName otherwise, right? I mean the classes in the module are in the classpath of my app but somwhow resteasy doesn't pickup the provider unless the module is set as global.
-
5. Re: Resteasy hibernatevalidator provider not picked up as jboss module
nickarls Nov 1, 2012 8:22 AM (in response to andrei.serea)Hmm. My guess would be that the deployer scans the application, sees that it uses hibernate and adds the hibernate dependecy and the classloader goes from there. Tried filtering out hibernate in jboss-deployment-structure.xml and pull it in through your own module?
-
6. Re: Resteasy hibernatevalidator provider not picked up as jboss module
matlach Jan 24, 2013 8:35 AM (in response to andrei.serea)see resolved issue : https://issues.jboss.org/browse/AS7-5711