cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andriy Redko (JIRA)" <>
Subject [jira] [Commented] (CXF-6221) CDI integration extension does not detect annotations on Karaf
Date Sat, 28 Feb 2015 19:50:04 GMT


Andriy Redko commented on CXF-6221:

Thanks a lot for the feedback, [~ciapunek]. Yes, I can reproduce "alias is already in use
in this or another context"  exception as well, I am going to fix it. I am looking into scopes
now, trying to understand why everything works fine in regular CDI containers but not when
running inside OSGi one. I don't think we have to introduce any Weld-specific code into the
CDI extension, it is supposed to work transparently in any CDI 1.x container. I am trying
to figure out what the cause is. Thanks a lot for you investigations, very helpful  and much

I will update you as soon as I have any breakthrough with that.
Thank you!

> CDI integration extension does not detect annotations on Karaf
> --------------------------------------------------------------
>                 Key: CXF-6221
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Integration, JAX-RS
>            Reporter: Krystian Panek
>            Assignee: Andriy Redko
>              Labels: cdi, extension, integration, karaf
>         Attachments: hydra.tar.gz, screenshot-1.png
> I am trying to use portable extension to get working CDI 1.2 and CXF 3.0.2 on Apache
Karaf. I wrapped it into OSGi bundle. I installed to my container also:
> * weld 2.1.1
> * pax-cdi-1.2
> * pax-cdi-1.2-web
> * pax-cdi-web-weld
> My JAXRS resources are not found by extension because some line from class **JAXRSCdiResourceExtension**
returns false even annotated element contains proper annotation but as a proxy (see attachment
image / screenshot from debugger).
> {code}
>         if (event.getAnnotated().isAnnotationPresent(ApplicationPath.class)) {
> {code}
> It would be nice,  to tell me how to get it working. I also tested CDI-1.1. Same situation.

This message was sent by Atlassian JIRA

View raw message