cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@gmail.com>
Subject Re: CXF with OSGi
Date Tue, 13 Aug 2013 08:41:14 GMT
Hi,

Which OSGi container you are using?
We recommend to use Karaf based OSGi container so that you can easily install cxf feature
which include all necessary bundles there.
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋



On 2013-8-13, at 下午4:32, Bjorn Almen wrote:

> I am trying to build a JAX-RS service running in OSGi context. I tried out
> the minimal_osgi sample in samples/jax_rs/minimal_osgi. The sample build and
> starts but two of the OSGi bundles get the status INSTALLED due to missing
> dependencies. 
> 
> osgi> 
> Framework is launched.
> 
> id	State       Bundle
> 0	ACTIVE      org.eclipse.osgi_3.6.2.R36x_v20110210
> 1	ACTIVE      org.apache.felix.fileinstall_3.1.10
> 2	INSTALLED   org.apache.cxf.bundle-jaxrs_2.7.6
> 3	ACTIVE      javax.ws.rs.javax.ws.rs-api_2.0.0.m10
> 4	ACTIVE      org.mortbay.jetty.server_6.1.24
> 5	ACTIVE      org.apache.servicemix.specs.stax-api-1.0_1.9.0
> 6	ACTIVE      org.apache.servicemix.specs.jsr311-api-1.1.1_1.9.0
> 7	ACTIVE      org.apache.servicemix.specs.activation-api-1.1_1.9.0
> 8	INSTALLED   minimalosgi_0.0.0
> 9	ACTIVE      org.apache.felix.http.api_2.2.0
> 10	ACTIVE      org.apache.felix.http.jetty_2.2.0
> 11	ACTIVE      org.apache.felix.http.bridge_2.2.0
> 12	ACTIVE      org.mortbay.jetty.security_6.1.24
> 13	ACTIVE      org.eclipse.osgi.services_3.2.100.v20100503
> 14	ACTIVE      org.apache.felix.http.whiteboard_2.2.0
> 15	ACTIVE      org.apache.servicemix.specs.jaxb-api-2.2_1.9.0
> 16	ACTIVE      org.apache.felix.http.bundle_2.2.0
> 17	ACTIVE      org.mortbay.jetty.util_6.1.24
> 18	ACTIVE      org.apache.geronimo.specs.geronimo-annotation_1.0_spec_1.1.1
> 19	ACTIVE      org.apache.felix.http.base_2.2.0
> 
> The  org.apache.cxf.bundle-jaxrs_2.7.6 has a lot of OPIONAL dependencies
> missing but could be disregarded. But there are a number of non optional
> missing as well:
> 
>    Missing imported package com.ctc.wstx.stax_[4.2.0,5.0.0).
>    Missing imported package javax.persistence_0.0.0.
>    Missing imported package javax.persistence.criteria_0.0.0.
>    Missing imported package javax.persistence.metamodel_0.0.0.
>    Missing imported package org.apache.neethi_0.0.0.
>    Missing imported package org.dom4j_0.0.0.
>    Missing imported package org.dom4j.io_0.0.0.
> 
> Anyone that has managed to resolve those dependencies? 
> 
> Are there any other samples with CXF in OSGi context that works?
> 
> BR, Björn
> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/CXF-with-OSGi-tp5732253.html
> Sent from the cxf-user mailing list archive at Nabble.com.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message