As far as I know gemini blueprint is not supported by CXF.
You should be able to create CXF services using CXF-DOSGi but not with
the blueprint namespaces as they are specific to aries blueprint.
On 05.05.2017 15:55, Setya wrote:
> Hi all,
> I'm trying to publish REST service with JAX-RS and deploy it onto Karaf
> 4.0.8 but failed with following stacktrace:
> 2017-05-05 20:45:31,950 | ERROR | xtenderThread-13 | BlueprintLoaderListener
> | 693 - org.eclipse.gemini.blueprint.extender - 1.0.2.RELEASE | Application
> context refresh failed
> Configuration problem: Unable to locate Spring NamespaceHandler for XML
> schema namespace [http://cxf.apache.org/blueprint/jaxrs]
> Offending resource: OSGi
> I'm able to do the same with Aries Blueprint.
> Is it a known problem w/ Gemini Blueprint ?
> Any help would be greatly appreciated.
> Thanks & Regards,
> View this message in context: http://cxf.547215.n5.nabble.com/Gemini-Blueprint-and-JAX-RS-tp5780238.html > Sent from the cxf-user mailing list archive at Nabble.com.
> Hi Christian,
> I've run another problem when invoking REST service if the Karaf framework
> is Equinox:
> 2017-05-08 18:13:50,873 | ERROR | p1826628273-2034 | JAXRSUtils
> | 46 - org.apache.cxf.cxf-rt-frontend-jaxrs - 3.1.1 | No message body
> has been found for class com.modulariti.facade.remote.hr.EmployeeDTO,
> ContentType: application/xml
> 2017-05-08 18:13:50,873 | WARN | p1826628273-2034 |
> WebApplicationExceptionMapper | 46 - org.apache.cxf.cxf-rt-
> - 3.1.1 | javax.ws.rs.WebApplicationException: HTTP 415 Unsupported Media
> While I can do just fine if Karaf framework is Felix.
> Is this a bad combination ?
> Thanks & Regards,
> View this message in context: http://cxf.547215.n5.nabble.
> Sent from the cxf-user mailing list archive at Nabble.com.
I can reproduce with the following step in Karaf 4.0.8 :
1. 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: