Currently the code for discovering the service files in DefaultValidationProviderResolver looks like:
The current code only checks whether the context class loader is null. If not only this context class loader is used to locate the service file. Only if the context class loader is null the current class loader is used.
A better approach is to load the service file from the context file loader and then try the current class loader in case no service file is found.