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 Sun, 15 Feb 2015 19:15:11 GMT

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

Krystian Panek edited comment on CXF-6221 at 2/15/15 7:14 PM:
--------------------------------------------------------------

Yes of course. I am a little bit busy right now and tomorrow, so I will try to send it for
you on Tuesday. Btw proxies were not a problem but different class loaders :) 

CXF-CDI-extension bundle and your custom bundle must both use same classloader which are providing
javax.rs.ws.Application to get all working . In my case, without changing original dependencies,
cxf-cdi-extension was using own embed version of javax.rs.ws.Application and that was a real
problem, according to source code, comparing same class but from different classloader gives
false.


was (Author: ciapunek):
Yes of course. I am a little bit busy right now and tomorrow, so I will try to send it for
you on Tuesday.

> 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: Andriy Redko
>              Labels: cdi, extension, integration, karaf
>         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