I'm trying without success to use Apache CXF with Equinox. I've read many blogs and docs about this, but no matter how much I try, something goes always wrong.
First of all: until some months ago, Apache foundation provided a single jar distribution for installing CXF, which you have to install with another bundle, called "osgi compendium", to solve various dependencies.
I've found some examples using this approach, the problem is that with newer versions it seems that a single jar bundle won't be made available any more... indeed, last version of the single bundle distro dates back
last year, and since I want to start with latest release I did not go deeper with such approach.
Of course I may download the multi bundle distro, and install each bundle in Equinox. The real problem is that this way I'd have a lot of bundle to install (this may be automated, anyway) and, more annoying, I'd have
to import them as single boundles in my Eclipse workspace to develop actual RESTFul services.
To avoid these steps, I thought to try it another way:
- I downloaded the latest distro of CXF (I mean not the DOSGI package, just the framework)
- I create my own bundle and used all the jars used in the distro as library for my bundle.
- I'm trying to export and start my bundle in OSGI without success, I always run in some ClassNotFound Exception.
I wonder if i should include the "osgi compendium" with this approach as well.... but moreover, I'm just asking you if this approach may be successful. Has anybody followed a similar approach, or I'm totally wrong ?
Any help is very appreciated.
Thank you in advance
subject: OSGI: how to use Apache CXF for RESTFul services.