users@jersey.java.net

Re: [Jersey] Classloader problem with Felix/Jetty

From: Morten <mortench2004_at_yahoo.dk>
Date: Mon, 24 May 2010 02:25:28 -0700 (PDT)

--- Den man 24/5/10 skrev Paul Sandoz <Paul.Sandoz@Sun.COM>: >>On May 22, 2010, at 11:39 AM, Jakub Podlesak wrote: >>this error occurs, when you start jersey-server bundle before the >>jersey-core bundle. >>I need to fix that, but in the meantime, could you please try to make >>sure the jersey-core bundle >>gets started first? Does it work for you? In OSGI, it is a NO NO to require bundles to start in a specific order. It might be better just to combine these bundles to avoid the whole problem ? (i.e. not create more bundles then you in fact can deal with). Alternatively, I guess you would need some servicetrackers to keep track of what comes and goes because if you do make multiple bundles then I guess it must be because they should be updated independently ? >>Regarding the ability to run Jersey on Felix, we have two samples >>showcasing that, which are continuously being tested >>on Felix without issues (see [1] and [2]). Have you considered using Pax runner instead (http://paxrunner.ops4j.org/space/Pax+Runner) which will allow you to just as easily test on ALL osgi frameworks ? >Can we add a chapter to the user guide explaining what is current >supported and linking to the samples? >Paul. Do notice, that the OSGI samples are/where missing from the big archive of samples that can be downloaded. /Morten