Apache CXF client loads fine in Eclipse but standalone jar throws NullpointerException in WSDLServiceFactory

后端 未结 4 680
旧巷少年郎
旧巷少年郎 2020-12-09 10:11

My goal is to create a Web Service client that runs in a standalone jar with all the dependencies using mvn assembly:single

I generated the client using CXF codegen

4条回答
  •  盖世英雄少女心
    2020-12-09 10:28

    Most likely it's how you are creating your single jar. A normal usage of the assembly plugin would not allow that as various parts of CXFs META-INF/* stuff would need to be merged together. That would include all the /META-INF/spring* and much of the stuff in /META-INF/cxf/* I would suggest using the shade plugin for that. See the pom.xml for CXF's bundle jar for an example.

    http://svn.apache.org/repos/asf/cxf/trunk/osgi/bundle/all/

提交回复
热议问题