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

Krystian Panek edited comment on CXF-6221 at 4/7/15 6:29 PM:
-------------------------------------------------------------

TESTED! Works great. Thank you very much for ready to go karaf feature. As a 
workaround I built locally CXF 3.1.0 snapshot. When will it release?

However @RequestScoped still not work due to:
{code}
org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active 
contexts for scope type javax.enterprise.context.RequestScoped
        at 
org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:687)
{code}

{code}
@Path("/system")
@RequestScoped
public class SystemController {
    @GET
    @Produces("text/html")
    @Path("/")
    public Response getHome() throws URISyntaxException {
       // ...
    }
{code}

Yes, dispatcher / CxfCdiServlet is deployed via web.xml . 


was (Author: ciapunek):
TESTED! Works great. Thank you very much for ready to go karaf feature. As a 
workaround I built locally CXF 3.1.0 snapshot. When will it release?

> 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, module-jax-rs.zip, 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