I am learning CXF with this Apache CXF Web Service Development , but alas, one of the book sample projects won't even compile!
This code refers to chapter 3 of contractfirst , and this is not a typo problem, because I use the source code verbatim from the book support site .
3 compilation errors point to one problem:
Chapter3\contractfirst\src\demo\order\OrderProcessService.java:52: cannot find symbol symbol: constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[]) location: class javax.xml.ws.Service super(WSDL_LOCATION, SERVICE, features); ^
In the file OrderProcessService.java.
The initial re search suggests that it might be JAX-WS 2.2 vs. 2.1 , but I don’t know how to make this compilation environment based on ANT “approve” JAX-WS 2.2.
I tried to put jaxws-api.jar in %JAVA_HOME%\lib\endorsed , and I tried to add this jar to the list of project libraries, but none of them helped.
I do not use Maven , so I can’t even list it as a dependency, and I hope that it will be magically resolved.
Any ideas how to solve this problem? So what can I do this very simple project build?
java jax-ws ant cxf
Eternal learningner
source share