Btw, in ServiceMix we have a distribution which includes Felix and CXF with
all its dependencies. You can download it from:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/features/apache-servicemix/1.0-SNAPSHOT/
On Thu, Mar 6, 2008 at 7:10 PM, glebreton <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have some problems for integrating CXF and OSGI. I use Felix for OSGI and
> this Exception is raised : javax.xml.ws.WebServiceException: Provider
> com.sun.xml.ws.spi.ProviderImpl not found
>
> This exception happend with the following code :
>
> fr.cxf.osgi.test.HelloWorld :
>
> package fr.cxf.osgi.test;
>
> import javax.jws.WebService;
>
> @WebService
> public interface HelloWorld {
> String sayHi(String text);
> }
>
> fr.cxf.osgi.test.HelloWorldImpl :
>
> package fr.cxf.osgi.test;
>
> import javax.jws.WebService;
>
> @WebService(endpointInterface = "fr.cxf.osgi.test.HelloWorld")
> public class HelloWorldImpl implements HelloWorld {
>
> public String sayHi(String text) {
> return "Hello " + text;
> }
> }
>
> fr.cxf.osgi.test.Activator :
>
> package fr.cxf.osgi.test;
>
> import javax.xml.ws.Endpoint;
>
> import org.osgi.framework.BundleActivator;
> import org.osgi.framework.BundleContext;
>
> public class Activator implements BundleActivator {
> public void start(BundleContext arg0) throws Exception {
> HelloWorldImpl hwi = new HelloWorldImpl();
> Endpoint.publish("http://localhost:9000/HelloWorld", hwi);
> }
>
> public void stop(BundleContext arg0) throws Exception {
>
> }
> }
>
> MANIFEST.MF :
>
> Manifest-Version: 2.0
> Bundle-Name: TestCxfOsgi
> Bundle-Version: 0.1
> Import-Package: org.osgi.framework
> Bundle-Activator: fr.cxf.osgi.test.Activator
> Bundle-Classpath: ., libs/aopalliance-1.0.jar, libs/commons-logging-1.1.jar,
> libs/cxf-2.0.1-incubator.jar,
> libs/geronimo-activation_1.1_spec-1.0-M1.jar,
> libs/geronimo-annotation_1.0_spec-1.1.jar,
> libs/geronimo-javamail_1.4_spec-1.0-M1.jar,
> libs/geronimo-servlet_2.5_spec-1.1-M1.jar,
> libs/geronimo-ws-metadata_2.0_spec-1.1.1.jar,
> libs/jaxb-api-2.0.jar, libs/jaxb-impl-2.0.5.jar,
> libs/jaxws-api-2.0.jar, libs/jaxws-api.jar,
> libs/jaxws-rt.jar,
> libs/neethi-2.0.jar, libs/saaj-api-1.3.jar,
> libs/saaj-impl-1.3.jar,
> libs/stax-api-1.0.1.jar, libs/wsdl4j-1.6.1.jar,
> libs/wstx-asl-3.2.1.jar,
> libs/xml-resolver-1.2.jar, libs/XmlSchema-1.2.jar
>
>
> I also tried to convert cxf and its dependencies as bundles and to put all
> the libs in one bundle but it does not change anything. And tested with JRE
> 5 & 6.
>
> Thank you and sorry for my english :/
>
> --
> View this message in context:
> http://www.nabble.com/CXF---Osgi-bundle-problem-tp15880268p15880268.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/