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

Reply via email to