cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-7432) JAX-RS does not work with Equinox Framework
Date Tue, 08 Aug 2017 11:36:00 GMT

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

Christian Schneider edited comment on CXF-7432 at 8/8/17 11:35 AM:
-------------------------------------------------------------------

The steps to reproduce seem to be incomplete. There is no feature cxf-dosgi-core in karaf
by default. Another question is how to avoid that aries blueprint and gemini blueprint are
both installed. Should we use the karaf minimal distro to avoid this?



was (Author: chris@die-schneider.net):
The steps to reproduce seem to be incomplete. There are no features gemini-blueprint and cxf-dosgi-core
in karaf by default. Another question is how to avoid that aries blueprint and gemini blueprint
are both installed. Should we use the karaf minimal distro to avoid this?


> JAX-RS does not work with Equinox Framework
> -------------------------------------------
>
>                 Key: CXF-7432
>                 URL: https://issues.apache.org/jira/browse/CXF-7432
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>         Environment: Apache Karaf 4.0.8
>            Reporter: Setya
>         Attachments: cxfdemo.jar
>
>
> Hi all,
> JAX-RS and Equinox framework in Karaf 4.0.8 do not seem to get along nicely.
> Below are steps to reproduce the problems:
> . Set karaf.framework=equinox in etc/config.properties 
> 2. ./karaf clean 
> 3. feature:install gemini-blueprint 
> 4. feature:install cxf-dosgi-core 
> 5. Install [^cxfdemo.jar] bundle. 
> 6. Hit the REST service with the following request: 
> POST http://<Your IP>:<Your Port>/services/rest/cxfservice/sayName HTTP/1.1

> Accept-Encoding: gzip,deflate 
> Content-Type: application/xml 
> Accept: text/plain 
> Content-Length: 81 
> Host: localhost:8181 
> Connection: Keep-Alive 
> User-Agent: Apache-HttpClient/4.1.1 (java 1.5) 
> <name>
>   <firstName>Foo</firstName>
>   <lastName>Bar</lastName>
> </name>
> 7. The response would be: 
> HTTP/1.1 415 Unsupported Media Type 
> Date: Sat, 13 May 2017 14:29:03 GMT 
> Date: Sat, 13 May 2017 14:29:03 GMT 
> Content-Length: 0 
> Server: Jetty(9.2.19.v20160908) 
> 8. Do the same with karaf.framework=felix -> Success



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message