users@jersey.java.net

RE: [Jersey] OSGI Jersey example not working

From: Larry Touve <ltouve_at_potomacfusion.com>
Date: Thu, 8 Apr 2010 09:14:31 -0500

Jakub,

I have already downloaded the osgified-war-tests - that's what I was trying to run. I can get it to run successfully when I run the Pax Exam test. It starts up felix, deploys the bundles and works fine. What I am trying to do is deploy the osgified-webapp.war to an existing felix installation. I'm trying to figure out which bundles I need to deploy to my felix installation. Some of the bundles deployed by the test are for testing purposes, so I don't think I need them all, correct?

Thanks,
 Larry


From: Jakub.Podlesak_at_Sun.COM [mailto:Jakub.Podlesak_at_Sun.COM]
Sent: Wednesday, April 07, 2010 7:17 PM
To: users_at_jersey.dev.java.net
Subject: Re: [Jersey] OSGI Jersey example not working

Marc Hadley wrote:

I'm not up-to-speed on the OSGI work but the following explains the module dependencies:



https://jersey.dev.java.net/nonav/documentation/latest/user-guide.html#chapter_deps



Looks like you also need jersey-core unless that is bundled in the jersey-server bundle ?



Right, the jersey-core module is needed as well, as it is not bundled with the jersey-server module.
An example of a OSGified web app could be found at [1], you can just:

svn checkout https://jersey.dev.java.net/svn/jersey/trunk/jersey/osgi/osgified-war-tests/

then you should see two modules there:

 - osgified-webapp contains a simple OSGified WAR module
 - osgified-war-test contains appropriate test

you need Java SE 6 to be able to run this.

I will move these modules to samples space before the 1.2 release,
and then the content should also become available for download as a standalone zip file.

HTH,

~Jakub

[1]https://jersey.dev.java.net/svn/jersey/trunk/jersey/osgi/osgified-war-tests/