Can you check the list of bundles you have installed to see if there are multiple bundles exporting the java.ws.rs package? Maybe two different versions of the jaxrs api?
Dan > On Jul 24, 2015, at 9:34 AM, Benson Margulies <[email protected]> wrote: > > Export-Package: com.basistech.raas.annotatorservice;version="0.0.1";uses > :="com.basistech.rosette,com.basistech.rosette.dm,javax.ws.rs,org.apach > e.cxf.jaxrs.ext,org.apache.cxf.jaxrs.ext.multipart,org.osgi.framework", > com.basistech.raas.annotatorservice.config;version="0.0.1";uses:="com.f > asterxml.jackson.annotation" > Implementation-Title: rosapi-worker-service > Implementation-Vendor: Basis Technology Corp. > Implementation-Vendor-Id: com.basistech.ws > Implementation-Version: 0.0.1-SNAPSHOT > Import-Package: com.basistech.rosette,com.basistech.rosette.dm;version=" > [1.12,2)",com.basistech.rosette.dm.jackson;version="[1.12,2)",com.basis > tech.rosette.osgi;version="[1.0,2)",com.basistech.rosette.osgi.util;ver > sion="[1.0,2)",com.fasterxml.jackson.annotation;version="[2.4,3)",com.f > asterxml.jackson.core;version="[2.4,3)",com.fasterxml.jackson.databind; > version="[2.4,3)",com.fasterxml.jackson.dataformat.yaml;version="[2.4,3 > )",com.google.common.collect;version="[16.0,17)",com.google.common.io;v > ersion="[16.0,17)",javax.ws.rs;version="[2.0,3)",org.apache.cxf.jaxrs.e > xt;version="[3.1,4)",org.apache.cxf.jaxrs.ext.multipart;version="[3.1,4 > )",org.osgi.framework;version="[1.8,2)",org.osgi.service.blueprint;vers > ion="[1.0.0,2.0.0)" > > On Fri, Jul 24, 2015 at 9:34 AM, Benson Margulies <[email protected]> > wrote: >> It works *sometimes* and not others. >> >> In the debugger, I see that the annotations themselves are Proxy >> instances; I'm not sure if that's the source of the trouble. >> >> Here is the relevant subset of the manifest: >> >> >> >> On Fri, Jul 24, 2015 at 9:30 AM, Jean-Baptiste Onofré <[email protected]> >> wrote: >>> Maybe your import is not correct. I guess that you correctly import the >>> annotation bundle (and not re-export it). Correct ? >>> >>> Regards >>> JB >>> >>> >>> On 07/24/2015 03:29 PM, Benson Margulies wrote: >>>> >>>> Boy did I just get confused. >>>> >>>> If you stop a bundle containing a CXF service, update it, and start >>>> it, CXF will, for some reason, no longer see the annotation classes, >>>> and will decide that the service bean has no useful methods. >>>> >>>> This is slightly annoying when debugging, but would be a big problem >>>> for live management. >>>> >>>> Is there something I might be doing wrong to provoke this? >>>> >>> >>> -- >>> Jean-Baptiste Onofré >>> [email protected] >>> http://blog.nanthrax.net >>> Talend - http://www.talend.com -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
