Affects Version/s: 2.0
Fix Version/s: 2.0.1
Instructions for adding new web services to JABAWS require that new WSDLs and service client stubs are generated using the wsbuild.xml Ant build file. If this is run, two problems are hit:
macbookpro-24614:jabaws jimp$ ant -f wsbuild.xml build-clients
/Users/jimp/git/jabaws/wsbuild.xml:187: You are running on JDK6 which comes with JAX-WS 2.1 API, but this tool requires JAX-WS 2.2 API. Use the endorsed standards override mechanism (http://java.sun.com/javase/6/docs/technotes/guides/standards/), or set xendorsed="true" on <wsimport>.
Total time: 0 seconds
Workaround for first problem: Edit the wsbuild.xml file's build-client target so that xendorsed="true" is added to all wsimport tasks.
Second problem - noticed by Matthew Hindle after dealing with the above:
On 02/08/2012 23:14, Matthew Hindle wrote:
> I wanted to try adding a Gblocks web server to JABAWS and I have been following... "how_to_add_new_webservice.txt" I am on 13.
> So far my tests all pass perfectly and the wsdl generates correctly but the generated java files under compbio.ws.client.stub are "Generated source version: 2.2". This leads to a compile problem because they conflict with older version of javax.xml.ws.Services in rt.jar (Only *WS.java are affected). Is there an easy solution to this. My attempts at adding the "jaxb-api-2.2.jar" and "jaxws-api-2.2.jar" under the /lib/endorsed have not been successful.