users@jersey.java.net

SV: [Jersey] Fixed Jersey versioning issues with GlassFish

From: Morten <mortench2004_at_yahoo.dk>
Date: Mon, 31 May 2010 10:40:49 -0700 (PDT)

That is great news. Will help us avoid all kinds of potential versioning conflicts across web servers by just bundling jersey inside our WAR-files. /Cheers, Morten --- Den man 31/5/10 skrev Paul Sandoz <Paul.Sandoz_at_Sun.COM>: > Fra: Paul Sandoz <Paul.Sandoz_at_Sun.COM> > Emne: [Jersey] Fixed Jersey versioning issues with GlassFish > Til: "users_at_jersey.dev.java.net List" <users_at_jersey.dev.java.net> > Dato: mandag 31. maj 2010 17.56 > Hi, > > Out of necessity related to error reporting of injected > dependencies i have fixed Jersey versioning issues with > GlassFish. > > It is now possible to deploy Jersey version 1.3-SNAPSHOT to > the war and not get strange stack traces because a different > version of Jersey is distributed with GlassFish. > > For those interested in technical details heres out it > works: > >   META-INF/sevices files will be ignored if the > corresponding >   META-INF/MANIFEST.MF of the same jar contains a > Bundle-SymbolicName >   beginning with "com.sun.jersey" and a Bundle-Version > that is not equal >   to the Bundle-Version declared in the > META-INF/MANIFEST.MF for the same jar >   that contains the > com.sun.jersey.spi.service.ServiceFinder.class. > > Pavel can you update the GF probes module to include a > Bundle-SymbolicName that begins with "com.sun.jersey"? > > There still could be some issues with my implementation, > but the general approach appears to work since any Jersey > related jars we distribute with GlassFish will by necessity > require such OSGi-related attributes in the MANIFEST.MF and > we plan to ensure all Jersey modules are OSGI enabled. > Waiting for hudson to report back. > > Paul. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net > For additional commands, e-mail: users-help_at_jersey.dev.java.net > >