IBM Support

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

Troubleshooting


Problem

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).

Symptom

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()

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Developer Toolkit for Eclipse","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"9.0","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
16 June 2018

UID

swg21639356