Eclipse is only an IDE. You should know how you configured for Spring can find that file and CXF runtime
Are you JAR file stored in classpath ? Has got a META-INF/cxf/cxf.xml file ? Are you included CXF runtime libraries into your classpath ? 2013/4/23 Au Usf <[email protected]> > Now it doesn't work anywhere (Eclipse or standalone). Do I have to > configure the location of cxf.xml somewhere? > > Thanks, > Au > > > > > ________________________________ > From: Jose María Zaragoza <[email protected]> > To: [email protected]; Au Usf <[email protected]> > Sent: Tuesday, April 23, 2013 2:35 PM > Subject: Re: cxf ws client - jar - does not read cxf.xml > > > The SpringBusFactory searches for all bean configuration files in the > META-INF/cxf directories on your classpath, and builds an application > context from them. > > Store your cxf.xml under META-INF/cxf in your JAR file > > > 2013/4/23 Au Usf <[email protected]> > > > I created a cxf ws client using plugins in Eclipse. I added cxf.xml for > > logging and request timeout. It all works fine in Eclipse. However, I > need > > to export the client as a jar file, and it needs to be included as part > of > > another project built in spring and ran on WebSphere 7. The WS calls are > > working fine, but cxf.xml is not used at all. I also extracted contents > of > > the jar, and I ran the test call from command line. cxf.xml had no effect > > either. I'm guessing, I need to package my jar in a certain way, or maybe > > include some libraries. Currently, the jar I produce has only class files > > and no libraries. > > > > How do I created a jar with CXF WS client, so that cxf.xml config file is > > read and used? > > > > Thanks, > > Au > > >
