On Thursday, June 14, 2012 02:53:48 PM Grégoire, 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 the classpath or you use JMS. I'm curious where an exception is coming from. It's likely we MIGHT be just catching a ClassNotFound and not the 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 > > 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. So I > get errors like "NoClassDefFoundError: > org/springframework/beans/factory/xml/NamespaceHandlerResolver". > > I've see it being answered for the server part here in 2007: > http://mail-archives.apache.org/mod_mbox/cxf-users/200709.mbox/%3C46F33EB > [email protected]%3E > > 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? > > > Thanks, > Olivier Grégoire > > > Atos Belgium N.V./S.A. > > > > Da Vincilaan 5 RPR-RPM Brussels > > B-1935 Zaventem Tel: +32 (0)2 690 28 00 BTW/TVA: BE 0401 848 > 135 > > Belgium Fax: +32 (0)2 690 28 01 ING: > 310-0264564-34 > > > > "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 employees > 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." -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
