[ https://issues.apache.org/jira/browse/CXF-6221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14331955#comment-14331955 ]
Andriy Redko commented on CXF-6221: ----------------------------------- [~ciapunek] Ok, so I fixed cxf-integration-cdi OSGi manifest metadata and the classloader issues are gone now. I also switched the example you have attached to use cxf-integration-cdi and it works perfectly (no need for a bridge anymore). Please give it a try (3.1.0-SNAPSHOT). The auto-discovery turns out to be an issue: PAX requires specific 'osgi.extender=pax.cdi' declaration to be included into the bundle manifest (I looked into BeanScanner source code). Without it, PAX does not consider bundle to be a "beans bundle" and does not scan it. I am not sure we can workaround it unless the complete Application class is provided (however, if there are no external providers required, everything works fine, the autodiscovery works in the own bundle). Thoughts? I am going to look into scopes right now to understand the problems there. Thanks! Best Regards, Andriy Redko > 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: 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 (v6.3.4#6332)