From user-return-2126-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Mon Feb 06 23:25:13 2006 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 76251 invoked from network); 6 Feb 2006 23:25:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Feb 2006 23:25:13 -0000 Received: (qmail 2277 invoked by uid 500); 6 Feb 2006 23:25:03 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 2259 invoked by uid 500); 6 Feb 2006 23:25:03 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 2234 invoked by uid 99); 6 Feb 2006 23:25:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2006 15:25:02 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ammulder@gmail.com designates 66.249.92.196 as permitted sender) Received: from [66.249.92.196] (HELO uproxy.gmail.com) (66.249.92.196) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2006 15:24:59 -0800 Received: by uproxy.gmail.com with SMTP id j3so79738ugf for ; Mon, 06 Feb 2006 15:24:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ygck973fyhHG2CGJMYdbfb+DeZTw/IPx7UiehbgH9dDoN01B/7bVyva7Z6Md6+oEnDtQjOtS41Ar0dRhnWjJ8tCSYJ1ml6sVsX2RNDebAG5VJTSJ1HQdgo9OS1FMv//lOjE16ViknnrxvlBXJMSMxedNoLgw/eAZIE9fnh5wkQ4= Received: by 10.66.225.15 with SMTP id x15mr2544325ugg; Mon, 06 Feb 2006 15:24:37 -0800 (PST) Received: by 10.66.219.2 with HTTP; Mon, 6 Feb 2006 15:24:37 -0800 (PST) Message-ID: <74e15baa0602061524r3cc68cbat242fe2f9fe029a43@mail.gmail.com> Date: Mon, 6 Feb 2006 18:24:37 -0500 From: Aaron Mulder Sender: ammulder@gmail.com To: user@geronimo.apache.org Subject: Re: Axis stub caller from EJB In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Are you saying that you have a web service in Axis server 1, and you want an EJB in Geronimo server 2 to call that web service? If so... It sounds like you generated client code (interfaces and stubs) for the web service with Axis, and bundled all that with your EJB. If that's correct, you'll probably need to add elements to your geronimo-ejb-jar.xml listing the Axis package prefix, to prevent your EJB JAR from seeing the Geronimo version of the Axis libraries. I'm not totally sure this won't break other things, but it seems like your best bet if you really need to use the Axis client stubs (because you most likely want Axis and all the interfaces to be in the same classloader, namely the EJB's classloader). However, the more portable appraoch is to forget about the Axis-generated stubs and add a service-ref to ejb-jar.xml for that EJB, pointing to the WSDL and JAX-RPC mapping file describing the service, and also bundle the service interface and port (aka service endpoint) interface with the EJB classes in the EJB JAR. You do not need any stubs, since Geronimo will generate those as needed. The down side to this approach is that you'll probably need to write the JAX-RPC mapping file (or use the JWSDP to generate the client, since I think it can write a JAX-RPC mapping file for you). There's some documentation on this approach here: http://chariotsolutions.com/geronimo/web-services.html Thanks, Aaron On 2/6/06, lubaki nsele wrote: > > Is anyone has been successful to call Axis webservice using stubs from E= JBs > in Geronimo? > stubs are packaged as libraries in the EJB app and need to make remote ca= ll > to a webservice. It seems not create Axis call. > This apps works fine under Websphere but Geronimo is throwing class cast > Exception or Document fiels not found. OR > Exception from service object: 32=3DInvalid search entry or entry does no= t > exist. Please try again. > Lubaki