cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krystian Panek (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-6221) CDI integration extension does not detect annotations on Karaf
Date Tue, 27 Jan 2015 18:35:35 GMT

    [ https://issues.apache.org/jira/browse/CXF-6221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14293932#comment-14293932
] 

Krystian Panek edited comment on CXF-6221 at 1/27/15 6:35 PM:
--------------------------------------------------------------

However your improvement does not fix the problem. First of all, I cannot see any bundle instructions,
'Provide-Capability' is missing so pax cdi extender cannot use extension. What is more, integration
does not work because of proxies instead of real annotations which are checked in JaxRsCdiResourceExtension
like in attached screenshot. I am still investigating it. My supposition is that maybe I just
have to disable that proxies by hand (in later versions of Weld, maybe it is working without
any changes https://issues.jboss.org/browse/WELD-1789). It would be great if you provide some
instruction how to get that integration working on Apache Karaf 3.0 and CDI 1.2 / Weld 2.2.4.


was (Author: ciapunek):
However your improvement does not fix the problem. First of all, I cannot see any bundle instructions,
'Provide-Capability' is missing so pax cdi extender cannot use extension. What is more, integration
does not work because of proxies instead of real annotations which are checked in JaxRsCdiResourceExtension
like in attached screenshot. I am still investigating it. My suppose is that maybe I just
have to disable that proxies by hand (in later versions of Weld, maybe it is working without
any changes https://issues.jboss.org/browse/WELD-1789). It would be great if you provide some
instruction how to get that integration working on Apache Karaf 3.0 and CDI 1.2 / Weld 2.2.4.

> CDI integration extension does not detect annotations on Karaf
> --------------------------------------------------------------
>
>                 Key: CXF-6221
>                 URL: https://issues.apache.org/jira/browse/CXF-6221
>             Project: CXF
>          Issue Type: Bug
>          Components: Integration, JAX-RS
>            Reporter: Krystian Panek
>            Assignee: Sergey Beryozkin
>              Labels: cdi, extension, integration
>             Fix For: 3.0.4, 3.1.0
>
>         Attachments: 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
(v6.3.4#6332)

Mime
View raw message