users@jersey.java.net

Re: [Jersey] OSGi issues

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Tue, 24 Aug 2010 11:20:00 +0200

Hi Angel,

Jakub, who is responsible for the OSGi integration is currently on
vacation.

Before he left he wrote some documentation (to be expanded) that may
help you, take note of the examples:

https://jersey.dev.java.net/nonav/documentation/1.4-SNAPSHOT/user-guide.html
#osgi

Paul.

On Aug 24, 2010, at 11:05 AM, Ángel Eduardo wrote:

> Hi!
>
> I'm having a bit of trouble using Jersey with OSGi. I'm trying to
> deploy a previous Glassfish V3 standard WAR app into an OSGi one, so
> I've happily added a MANIFEST.MF file with some OSGi info and tried
> to deploy.
>
> But Jersey (1.1.5 and 1.5, both tried) is complaining with
> "com.sun.jersey.core.spi.scanning.ScannerException: The URI scheme
> bundle of the URI bundle://282.0:2/com/example/myexample is not
> supported.", so it seems that using
> "com.sun.jersey.config.property.packages" param is not working
> (Jersey don't know how to read OSGi URLs, it seems,a t least with
> this Jersey version, 1.1.5 or 1.5, both of which I've tried). I've
> tried with other
> "com.sun.jersey.config.property.resourceConfigClass" like
> "com.sun.jersey.api.core.ClasspathResourceConfig" or
> "com.sun.jersey.api.core.ClassNamesResourceConfig", neither of which
> work.
>
> I've also tried to add the Jersey jars to my bundle and add every
> class to Import-Packages of MANIFEST (I know, it's not pretty, but
> I'm a bit exasperated right now :P) but it keep complaining about
> some multipart.impl class it didn't found, even where it was in the
> Import-Packages.
>
> Anyway, I write to you, wise men :P, to know the right approach to
> make Jersey (as OSGi bundle or not, I don't really care) found my
> root classes.
>
> Thanks in advance!
>
> --
> Ángel Eduardo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>