IBM Support

WSDL file not generated when publishing to WebSphere Application Server

Troubleshooting


Problem

Attempts to publish a JAX-WS EJB WebService to IBM WebSphere Application Server v8.0.0.2 from IBM Rational Application Developer v8.0.4 fail with error "WSWS7054E during generation of the WSDL file".

Symptom

The error that is reported while publishing the project is the following:


 WASWSDLGenera E   WSWS7054E: The Web Services Description Language (WSDL) file could not be generated for the <ClassName> Web service implementation class because of the following error: java.lang.Exception: A WSDL Definition could not be generated for the implementation class: <ClassName>

Cause

The project uses the same folder as source and output folder.

Diagnosing The Problem

In the Markers view, warnings like the following can be seen:

Description Resource Path Location Type
Source folder '.apt_generated' in project 'projectName1' cannot output to distinct source folder ''
Source folder '.apt_generated' in project 'projectName2' cannot output to
distinct source folder 'ejbModule'

Resolving The Problem

SOLUTION

Modify the Java Build Path so that it uses a distinct output folder (such as bin) for each source folder:

  1. Right click on the project name in the Project Explorer

  2. Select Properties

  3. Select Java Build Path

  4. Select the Source tab

  5. Select each source folder individually

  6. Verify that the default output folder differs from the source folder. If its is the same, then browse to a different folder (You might have to create a new folder first, if no other folder exists in the project.)

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Services Development","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.0;8.0.1;8.0.2;8.0.3;8.0.4","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS4JCV","label":"Rational Software Architect for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Services Development","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.0;8.0.1;8.0.2;8.0.3;8.0.4","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}}]

Document Information

Modified date:
29 September 2018

UID

swg21590404