Dan,

Thanks, I'd added:


                <dependencies>
                        <dependency>
                                <groupId>org.apache.cxf</groupId>
        
<artifactId>cxf-rt-frontend-jaxws</artifactId>
                                <version>2.1.4</version>
                        </dependency>
                        <dependency>
                                <groupId>org.apache.cxf</groupId>
        
<artifactId>cxf-rt-transports-http</artifactId>
                                <version>2.1.4</version>
                        </dependency>
                        <!-- Jetty is needed if you're are not using the
CXFServlet -->
                        <dependency>
                                <groupId>org.apache.cxf</groupId>
        
<artifactId>cxf-rt-transports-http-jetty</artifactId>
                                <version>2.1.4</version>
                        </dependency>
                </dependencies>

As per the online manual page.  However it fails to start with this
Spring related exception;


Exception in thread "main" java.lang.RuntimeException:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.apache.cxf.bus.spring.BusApplicationListener'
defined in URL
[jar:file:/C:/Documents%20and%20Settings/bakerjoh/.m2/repository/org/apa
che/cxf/cxf-rt-core/2.1.4/cxf-rt-core-2.1.4.jar!/META-INF/cxf/cxf.fixml]
: Initialization of bean failed; nested exception is
java.lang.NoSuchMethodError:
org.springframework.context.support.AbstractApplicationContext.addApplic
ationListener(Lorg/springframework/context/ApplicationListener;)V
        at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.ja
va:96)
        at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.ja
va:86)

Spring 2.0.8 has been fetched by maven.

Any thoughts?


John 

> -----Original Message-----
> From: Daniel Kulp [mailto:[email protected]] 
> Sent: 13 February 2009 15:48
> To: [email protected]
> Cc: Baker, John: IT (LDN)
> Subject: Re: CXF & Maven
> 
> On Fri February 13 2009 10:35:22 am 
> [email protected] wrote:
> > Hi,
> >
> > Does anyone have the dependencies required for CXF & Maven 
> if the sole 
> > purpose is to run a set of Java sources generated from a WSDL?
> 
> For generated java stuff, you probably just need 
> cxf-rt-frontend-jaxws.   
> Everything else should be pulled in transitively from that.
> 
> Dan
> 
> 
> 
> >
> >
> > John
> > _______________________________________________
> >
> > This e-mail may contain information that is confidential, 
> privileged 
> > or otherwise protected from disclosure. If you are not an intended 
> > recipient of this e-mail, do not duplicate or redistribute 
> it by any 
> > means. Please delete it and any attachments and notify the 
> sender that 
> > you have received it in error. Unless specifically indicated, this 
> > e-mail is not an offer to buy or sell or a solicitation to 
> buy or sell 
> > any securities, investment products or other financial product or 
> > service, an official confirmation of any transaction, or an 
> official 
> > statement of Barclays. Any views or opinions presented are solely 
> > those of the author and do not necessarily represent those of 
> > Barclays. This e-mail is subject to terms available at the 
> following 
> > link: www.barcap.com/emaildisclaimer. By messaging with 
> Barclays you 
> > consent to the foregoing.  Barclays Capital is the 
> investment banking 
> > division of Barclays Bank PLC, a company registered in 
> England (number 
> > 1026167) with its registered office at 1 Churchill Place, London,
> > E14 5HP.  This email may relate to or be sent from other members of 
> > the Barclays Group. _______________________________________________
> 
> --
> Daniel Kulp
> [email protected]
> http://www.dankulp.com/blog
> 
_______________________________________________

This e-mail may contain information that is confidential, privileged or 
otherwise protected from disclosure. If you are not an intended recipient of 
this e-mail, do not duplicate or redistribute it by any means. Please delete it 
and any attachments and notify the sender that you have received it in error. 
Unless specifically indicated, this e-mail is not an offer to buy or sell or a 
solicitation to buy or sell any securities, investment products or other 
financial product or service, an official confirmation of any transaction, or 
an official statement of Barclays. Any views or opinions presented are solely 
those of the author and do not necessarily represent those of Barclays. This 
e-mail is subject to terms available at the following link: 
www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the 
foregoing.  Barclays Capital is the investment banking division of Barclays 
Bank PLC, a company registered in England (number 1026167) with its registered 
office at 1 Churchill Place, London, E14 5HP.  This email may relate to or be 
sent from other members of the Barclays Group.
_______________________________________________

Reply via email to