Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4B9BC18672 for ; Fri, 24 Jul 2015 13:49:31 +0000 (UTC) Received: (qmail 54796 invoked by uid 500); 24 Jul 2015 13:49:18 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 54726 invoked by uid 500); 24 Jul 2015 13:49:18 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 54714 invoked by uid 99); 24 Jul 2015 13:49:17 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2015 13:49:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0E4D71A77E8 for ; Fri, 24 Jul 2015 13:49:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=basistech.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Vu6AHZczy9De for ; Fri, 24 Jul 2015 13:48:57 +0000 (UTC) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 2B86020EFC for ; Fri, 24 Jul 2015 13:48:56 +0000 (UTC) Received: by obre1 with SMTP id e1so16508679obr.1 for ; Fri, 24 Jul 2015 06:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basistech.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=EPJ0Dodqq9WKy9o/NJsulhDMI61Uor3dt7kDpHFxm88=; b=QzwoMTBd1p6novfSCtiT4uMoDBfpUdFH8zzh5G6FSX7nv9r7s7W3SJsfTgK5YKvDoo LYz91Qq0R9gTT8HM/yH9yd1QQGK57qktfH4mWrOddgMwhA/14RRvcQZsE3ki5T2sZbh7 c+rCt/ucwA6mwaQg4UJCWhO6n+3Tcwmo5bCA0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=EPJ0Dodqq9WKy9o/NJsulhDMI61Uor3dt7kDpHFxm88=; b=IZQgMXNcreCeyAAnns37KJmgOCvVrxomGwLquIPblzIN4ZVbTA++iX6uOG8G1UW73n +V5aR8UeWEuWqGR7h/DR+5wSDQbhC24WC8a5U6cngA5dionfK+MR80cZdRWTMWJX0KtI Uyg7IEKaYfAZazJAjSIERCdtGtn8uqn/rC9dQKeh+1xBYWH0T0rpUsodtVe/eRbzk2Zl RSBkZy1rlkGHAXko26CJ7yIwu+0kkxqCsZMP1akc+341qIDnBGtH8J9kNlNed6l4HqCe zr9FftMAUxr7HBeBlfkTeHq3sfOGgcveMDc5uaX3x0IF7w+mCjZwIsrpFEPeXrze74oB D/xw== X-Gm-Message-State: ALoCoQk/vl1P8dt0M1jhuKQBXnMLfIh5GqZR5FieCjhO2uc5HMz2PyGMwdkWqtJK7HJ3k0Y6H4qS MIME-Version: 1.0 X-Received: by 10.202.179.87 with SMTP id c84mr14585224oif.110.1437745728809; Fri, 24 Jul 2015 06:48:48 -0700 (PDT) Received: by 10.76.177.103 with HTTP; Fri, 24 Jul 2015 06:48:48 -0700 (PDT) In-Reply-To: <32256B04-45E1-4EBA-B897-1B1B1C927C40@apache.org> References: <55B23E04.9030902@nanthrax.net> <32256B04-45E1-4EBA-B897-1B1B1C927C40@apache.org> Date: Fri, 24 Jul 2015 09:48:48 -0400 Message-ID: Subject: Re: Karaf, CXF, classloading, debugging From: Benson Margulies To: users@cxf.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dan, When I completely cleaned out the container, rebuild my stuff out to a KAR, and restarted, my service works, except when I try to click through into the WADL, and I get the following. I will try to recreate the problem with the annotations, if you would tell me what to type at the karaf prompt to investigate the package as you requested. HTTP ERROR 500 Problem accessing /cxf/annotator. Reason: Server Error Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.glassfish.jersey.internal.RuntimeDelegateImpl not found by javax.ws.rs-api [172] at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:152) at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120) at javax.ws.rs.core.MediaType.toString(MediaType.java:402) at java.lang.String.valueOf(String.java:2847) at java.lang.StringBuilder.append(StringBuilder.java:128) at org.apache.cxf.jaxrs.model.wadl.WadlGenerator.handleFormRepresentation(W= adlGenerator.java:1064) at org.apache.cxf.jaxrs.model.wadl.WadlGenerator.handleOperation(WadlGenera= tor.java:579) at org.apache.cxf.jaxrs.model.wadl.WadlGenerator.handleResource(WadlGenerat= or.java:402) at org.apache.cxf.jaxrs.model.wadl.WadlGenerator.generateWADL(WadlGenerator= .java:310) at org.apache.cxf.jaxrs.model.wadl.WadlGenerator.doFilter(WadlGenerator.jav= a:237) at org.apache.cxf.jaxrs.model.wadl.WadlGenerator.filter(WadlGenerator.java:= 195 On Fri, Jul 24, 2015 at 9:41 AM, Daniel Kulp wrote: > 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 ve= rsions of the jaxrs api? > > Dan > > > >> On Jul 24, 2015, at 9:34 AM, Benson Margulies wro= te: >> >> Export-Package: com.basistech.raas.annotatorservice;version=3D"0.0.1";us= es >> :=3D"com.basistech.rosette,com.basistech.rosette.dm,javax.ws.rs,org.apac= h >> e.cxf.jaxrs.ext,org.apache.cxf.jaxrs.ext.multipart,org.osgi.framework", >> com.basistech.raas.annotatorservice.config;version=3D"0.0.1";uses:=3D"co= m.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= =3D" >> [1.12,2)",com.basistech.rosette.dm.jackson;version=3D"[1.12,2)",com.basi= s >> tech.rosette.osgi;version=3D"[1.0,2)",com.basistech.rosette.osgi.util;ve= r >> sion=3D"[1.0,2)",com.fasterxml.jackson.annotation;version=3D"[2.4,3)",co= m.f >> asterxml.jackson.core;version=3D"[2.4,3)",com.fasterxml.jackson.databind= ; >> version=3D"[2.4,3)",com.fasterxml.jackson.dataformat.yaml;version=3D"[2.= 4,3 >> )",com.google.common.collect;version=3D"[16.0,17)",com.google.common.io;= v >> ersion=3D"[16.0,17)",javax.ws.rs;version=3D"[2.0,3)",org.apache.cxf.jaxr= s.e >> xt;version=3D"[3.1,4)",org.apache.cxf.jaxrs.ext.multipart;version=3D"[3.= 1,4 >> )",org.osgi.framework;version=3D"[1.8,2)",org.osgi.service.blueprint;ver= s >> ion=3D"[1.0.0,2.0.0)" >> >> On Fri, Jul 24, 2015 at 9:34 AM, Benson Margulies = 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=C3=A9 wrote: >>>> Maybe your import is not correct. I guess that you correctly import th= e >>>> 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=C3=A9 >>>> jbonofre@apache.org >>>> http://blog.nanthrax.net >>>> Talend - http://www.talend.com > > -- > Daniel Kulp > dkulp@apache.org - http://dankulp.com/blog > Talend Community Coder - http://coders.talend.com >