Hi

How do I register an additional exception mapper?

Apparently I need to register
org.apache.cxf.jaxrs.validation.ValidationExceptionMapper
if I want to provide an meaningfull description for my users.

I have tried doing it as an intent, by extending from
org.apache.cxf.jaxrs.validation.ValidationExceptionMapper..
and adding it as an @component and @provider:

java.lang.RuntimeException: service cannot be exported because the
following intents are not supported by this RSA: [validationexceptionmapper]
at
org.apache.cxf.dosgi.common.intent.impl.IntentManagerImpl.assertAllIntentsSupported(IntentManagerImpl.java:175)


Code for reference:

@Component //
        (
                property =
"org.apache.cxf.dosgi.IntentName=validationexceptionmapper" //
        )
@Provider
public class ReadableExceptions extends ValidationExceptionMapper  {


-- 
Best regards / Med venlig hilsen
Nino Martinez

Reply via email to