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

Sergey Beryozkin commented on CXF-6221:
---------------------------------------

Hi, 
I've actually no idea at all how to make it work in Karaf though I know it has 
to be a bundle at the very least.
Are you sure you have downloaded the latest snapshot ? There has to be an 
Import-Package instruction in the manifest, I did check it yesterday after a 
local build and confirmed it was there. So get that one and try, the pom of 
this module should have a 'bundle' artifact type.
Now, as far as Provide-Capability is concerned, should it be set  to "CDI" ? 
When you get the latest snapshot with Import-Package generated, can you please 
modify the module jar, update Manifest with a Provide-Capability instruction 
and see if it makes a difference ?  I guess try with an Import-package only 
first and then add Provide-Capability next if needed.

Let me know the results and  I'll add a Provide-Capability instruction to 
cdi/pom.xml 
 

> 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)

Reply via email to