You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Krystian Panek (JIRA)" <ji...@apache.org> on 2015/02/03 08:12:34 UTC
[jira] [Commented] (CXF-6221) CDI integration extension does not
detect annotations on Karaf
[ https://issues.apache.org/jira/browse/CXF-6221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14302873#comment-14302873 ]
Krystian Panek commented on CXF-6221:
-------------------------------------
I am still fighting with it ;) Now I have a problem with request-scoped annotation. Whenever I annotate my JAX-RS resource using @RequestScoped I am getting:
{code}
Exception in thread "main" org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped
{code}
Maybe you have some idea, how can I fix it? Maybe it is a issue related with pax-cdi-web-weld ... maybe I have to initialize context manually, I am new in CDI so any suggestions are welcome.
> 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, karaf
> 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)