Generating a Liberty JAX-WS 2.2 web service client in a workbench started with JRE 6 fails with a wsimport error when using WebSphere Developer Tools for Eclipse
In a WebSphere Developer Tools for Eclipse workbench started with JRE 6, a Liberty JAX-WS 2.2 web service client cannot be generated for a service with a method that implements a throwable exception (java.lang.Exception).
The web service client is not generated. The following message is displayed: "Errors occurred during wsimport."
In the stack trace, the following error message is logged:
Caused by: java.lang.NoSuchMethodException: javax.xml.bind.annotation.XmlElementRef.required()
The required method, javax.xml.bind.annotation.XmlElementRef.required(), that is needed by the Liberty runtime to generate the web service client is not included in the JRE.
This problem could also occur if Rational Application Developer is installed into an existing Eclipse IDE that is configured to use JRE 6.
Resolving the problem
Generate the web service client by using JAX-WS 2.1, or change the JRE that is used to launch the workbench to Java 7.
This solution also applies to Rational Application Developer that is installed on an existing Eclipse IDE. Use the Eclipse IDE with the JVM (Java 7) that is provided by Rational Application Developer.
More support for:
Rational Application Developer for WebSphere Software
Developer Toolkit for Eclipse
Software version: 9.0
Operating system(s): Linux, Windows
Reference #: 1639356
Modified date: 17 June 2013