cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mayank Thakore <>
Subject RE: CXF & Osgi bundle problem
Date Fri, 07 Mar 2008 03:07:12 GMT
When I had tried initially, I got the same error and decided to try a
different eclipse package. Changing to "Eclipse for RCP/Plug-in Developers"
worked for me! (I use equinox)

 This e-mail and attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including,
but not limited to, total or partial disclosure, reproduction, or
dissemination) by persons other than the intended recipient's) is
prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!

-----Original Message-----
From: glebreton [] 
Sent: Thursday, March 06, 2008 23:41
Subject: CXF & Osgi bundle problem


I have some problems for integrating CXF and OSGI. I use Felix for OSGI and
this Exception is raised : Provider not found

This exception happend with the following code :

fr.cxf.osgi.test.HelloWorld :

package fr.cxf.osgi.test;

import javax.jws.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 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-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/jaxb-api-2.0.jar, libs/jaxb-impl-2.0.5.jar,
                  libs/jaxws-api-2.0.jar, libs/jaxws-api.jar,
                  libs/neethi-2.0.jar, libs/saaj-api-1.3.jar,
                  libs/stax-api-1.0.1.jar, libs/wsdl4j-1.6.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:
Sent from the cxf-user mailing list archive at

View raw message