It sounds like you don't have the maven-shade-plugin configured to correctly 
concat/merge all the things together that need to be merged/concat together.  
In particular, the META-INF/cxf/bus-extensions.txt files.

Dan



On May 7, 2013, at 10:29 AM, Christian Gräfe <[email protected]> wrote:

> Hello,
> 
> i trying to implement an jax-ws client app for testing purposes via maven.
> My structure is the following
> 
> - parent
> -- client stubs that are generating service files
> -- console app that is calling the service (with maven-shade-plugin)
> 
> The whole project is managed via eclipse and if I start the console project
> in eclipse everything works fine, but if i start the jar file via java -jar
> I get this exception:
> 
> --------------------------------------
> Exception in thread "main" java.lang.NullPointerException
>        at
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:98)
>        at
> org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:203)
>        at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:147)
>        at
> org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:98)
>        at javax.xml.ws.Service.<init>(Unknown Source)
>        at
> srcs.srcs.mycontract.v1_1.CostingService.<init>(CostingService.java:40)
>        at com.example.Services.Client.TestRequest.main(TestRequest.java:79)
> -----------------------------------------
> 
> Any idea what I can do?
> 
> 
> 
> kind regards
> Christian

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to