cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CXF-6221) CDI integration extension does not detect annotations on Karaf
Date Fri, 10 Apr 2015 12:28:12 GMT


Sergey Beryozkin commented on CXF-6221:

I wonder if Krystian has a good point about having a default CXF servlet CDI-aware if a CDI
runtime is available. It can be very difficult to do though. A default servlet with "/cxf"
is created at a CXF Http Transport initialization time so at that point of time we do not
know if it will be JAX-WS or JAX-RS, etc. Might be worth investigating in a longer term if
a servlet with CDI capabilities can be created by default without being JAX-RS or JAX-WS specific
but may be it is out of CXF scope (TomEE and other higher-level containers might be a better

> 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