-
Bug
-
Resolution: Done
-
Major
-
2.3.3.Final
-
None
When using two applications (WARs) in the same JBoss, RestEASY only picks up the @Provider-classes for the application that gets initialized first.
I have a suggested fix for the issue at:
https://github.com/mattiasholmqvist/Resteasy/tree/2.3.3-cdi-provider-patch
Where the CdiInjectorFactory uses the newly created InjectorFactory from the ResteasyProviderFactory (which is in turn created in ResteasyDeployment) instead of using getInstance() in the constructor. This fixes the issue in our setup.
If this looks reasonable to you I can create a pull request from the branch.
PS. I tried to create a discussion thread first but I couldn't get access to RestEasy discussion forums for some reason. DS.