cxf-issues mailing list archives

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

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

Krystian Panek commented on CXF-6221:
-------------------------------------

Hmmm ;)

Now I have endpoint uniqueness problem:

{code}
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: There is an endpoint
already running on /.
	at org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener(JAXRSBindingFactory.java:85)
	at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
	at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:206)
	... 81 more
{code}

Because I have:

1) module adm
* Web-ContextPath: /adm
* @WebApplication("/")

2) module core
* Web-ContextPath: /core
* @WebApplication("/") <- here we have a problem.. 

So I have to have "/adm/adm" and "/core/core" ? ;(

> 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