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 B4CA39112 for ; Thu, 14 Jun 2012 15:19:26 +0000 (UTC) Received: (qmail 85118 invoked by uid 500); 14 Jun 2012 15:19:25 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 85013 invoked by uid 500); 14 Jun 2012 15:19:25 -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 84591 invoked by uid 99); 14 Jun 2012 15:19:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 15:19:25 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.85.173.253] (HELO server.dankulp.com) (64.85.173.253) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 15:19:18 +0000 Received: by server.dankulp.com (Postfix, from userid 5000) id 1E939182B70; Thu, 14 Jun 2012 11:18:57 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter-users@cxf.apache.org.nQ08zBOt08 Received: from dilbert.dankulp.com (c-24-91-72-253.hsd1.ma.comcast.net [24.91.72.253]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.dankulp.com (Postfix) with ESMTPSA id 1412C182B07; Thu, 14 Jun 2012 11:18:56 -0400 (EDT) From: Daniel Kulp To: users@cxf.apache.org Cc: =?ISO-8859-1?Q?Gr=E9goire=2C?= Olivier Subject: Re: CXF as client without Spring Date: Thu, 14 Jun 2012 11:18:51 -0400 Message-ID: <2000789.zUQtXlhiXz@dilbert.dankulp.com> User-Agent: KMail/4.8.3 (Linux/3.2.2; KDE/4.8.3; x86_64; ; ) In-Reply-To: <2DC150FDD7839646A77A416BF6212AAD3CAB0408@AOWNLEX022.europe.nl.intra> References: <2DC150FDD7839646A77A416BF6212AAD3CAB0408@AOWNLEX022.europe.nl.intra> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Old-Spam-Status: No, score=-102.9 required=3.0 tests=ALL_TRUSTED,BAYES_00, SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.3.2 On Thursday, June 14, 2012 02:53:48 PM Gr=E9goire, Olivier wrote: > I'm using CXF 2.6.1 and I would like to have the client part working > without Spring. Can you provide the full stack trace? With 2.6.1, by default, CXF WON'T use Spring unless it finds a cxf.xml = on=20 the classpath or you use JMS. I'm curious where an exception is comin= g=20 from. It's likely we MIGHT be just catching a ClassNotFound and not th= e=20 related NoClassDefFound, but I'd like to see the traces to really see. You MAY be able to work around it by calling: new org.apache.cxf.bus.CXFBusFactory().createBus(); prior to any other calls. Might work. Dan >=20 > Currently, I have Spring in my classpath, but it's version 1.2.9 (don= 't > laugh) and there is no way for me to update or remove that library. S= o I > get errors like "NoClassDefFoundError: > org/springframework/beans/factory/xml/NamespaceHandlerResolver". >=20 > I've see it being answered for the server part here in 2007: > http://mail-archives.apache.org/mod_mbox/cxf-users/200709.mbox/%3C46F= 33EB > 3.4070404@iona.com%3E >=20 > So I'm looking for the kind of same answer but for the client part of= CXF, > so is there any way I can get my client working without Spring, even = if > Spring actually is in my classpath? >=20 >=20 > Thanks, > Olivier Gr=E9goire >=20 >=20 > Atos Belgium N.V./S.A. >=20 >=20 >=20 > Da Vincilaan 5 RPR-RPM Brussels >=20 > B-1935 Zaventem Tel: +32 (0)2 690 28 00 BTW/TVA: BE 0401= 848 > 135 >=20 > Belgium Fax: +32 (0)2 690 28 01 ING: = =20 > 310-0264564-34 >=20 >=20 >=20 > "The information contained in this e-mail and any attachment thereto = is > confidential and may contain information which is protected by > intellectual property rights. This information is intended for the > exclusive use of the recipient(s) named above. This e-mail does not > constitute any binding relationship or offer toward any of the > addressees. If you are not one of the addressees, one of their employ= ees > or a proxy holder entitled to hand over this message to the addressee= (s), > any use of the information contained herein (e.g. reproduction, > divulgation, communication or distribution...) is prohibited. If you = have > received this message in error, please notify the sender and destroy = it > immediately after. The integrity and security of this message cannot = be > guaranteed and it may be subject to data corruption, interception and= > unauthorized amendment, for which we accept no liability." --=20 Daniel Kulp dkulp@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com