• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

OSGI: how to use Apache CXF for RESTFul services.

 
Bartender
Posts: 1385
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi to all,

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



 
reply
    Bookmark Topic Watch Topic
  • New Topic