IBM Support

JAX-WS Web Service Generation Wizard does not support Maven-based projects

Troubleshooting


Problem

Using the IBM Rational Application Developer (RAD) JAX-WS Web Service Generation Wizard to generate a web service from a Maven project fails during the generation step. The tool is not be able to locate class files necessary for generation.

Symptom

As of Rational Application Developer 9.1.x, which is included by IBM Rational Software Architect (RSA), Maven-based projects are not supported by the JAX-WS Web Service Generation Wizard functionality that is built into RAD/RSA.

This functionality is traditionally accessed by the user by right-clicking on a WSDL file, or right-clicking an existing JAX-WS/JAX-RS service from the Services View (in Java EE perspective) or the Services tree item in the Enterprise Explorer view. This includes Web service and Web service client generation, and would affect both traditional WAS/Liberty.

The RAD/RSA Web Service generation wizard invokes the wsgen/wsimport tools that are bundled with WebSphere Application Server (WAS) v7/v8/v8.5 and Liberty. In doing so, the RAD/RSA wizard builds a classpath based on the dependencies of the Web Services' Web Project. In the non-Maven environment, these dependencies are populated in the Web Project as User Libraries and WAS Runtime dependencies. However, in a Maven project, dependencies are stored in a separate Maven-managed dependency list, which is not handled by the Web services tooling. Consequently, the generation will fail.

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Web Services Development","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.5;8.5.1;8.5.5;8.5.5.1;9.0;9.0.1;9.1;9.1.0.1;9.1.1","Edition":"All Editions","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

swg21688043