cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andriy Redko (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-6221) CDI integration extension does not detect annotations on Karaf
Date Fri, 10 Apr 2015 00:50:13 GMT

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

Andriy Redko edited comment on CXF-6221 at 4/10/15 12:50 AM:
-------------------------------------------------------------

[~ciapunek] It seems I figured out what is going on here. There are basically two issues:
 - all your services should be accessed by this URL pattern: http://<host>:8181/<Web-ContextPath>/...,
please notice no *cxf* there, for example: http://localhost:8181/adm/adm/system/dashboard
 - you need to add webapp (the same you have with REST servlet) and *_wab* instruction to
your services (com.neva.hydra.platform.adm f.e., I attached this module as adm-with-webxml.zip
for reference)

With that, everything CDI/CXF related is going to work. Please, do not use *cxf* context path,
I know it is confusing but you can disable it if you wish. Please let me know if you succeeded.



was (Author: reta):
[~ciapunek] It seems I figured out what is going on here. There are basically two issues:
 - all your services should be accessed by this URL pattern: http://<host>:8181/<Web-ContextPath>/...,
please notice no *cxf* there, for example: http://localhost:8181/adm/adm/system/dashboard
 - you need to add webapp (the same you have with REST servlet) and _wab header to your services
(com.neva.hydra.platform.adm f.e., I attached this module as adm-with-webxml.zip for reference)

With that, everything CDI/CXF related is going to work. Please, do not use *cxf* context path,
I know it is confusing but you can disable it if you wish. Please let me know if you succeeded.


> 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: adm-with-webxml.zip, appcia-hydra-fcf9ff603e4a.zip, 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)

Mime
View raw message