Hi,

I have a JAX-RS service running on TomEE with an empty Application
subclass. The WAR doesnt have any Providers, but the TomEE runtime library
has a custom jar that has filters and exception mappers annotated with
@Provider.

My expectation is that those @Provider classes will be scanned
automatically and will be invoked on the request-response path. But, they
are not recognized as provider classes.

cxf.jaxrs.skip-provider-scanning is not set.
cxf.jaxrs.providers is set to JohnzonProvider.

Are those @Provider classes not being scanned because they are not part of
the application WAR file ? If no, then why are the @Provider classes not
being recognized.
As a workaround, I have listed all of the provider classes in the value for
cxf.jaxrs.providers, but I really want them to auto scanned.

Please help me resolve this.

Thanks,
Aruna.

Reply via email to