IBM Support

The Eclipse documentation for generating JAXB classes is incomplete

Troubleshooting


Problem

Attempts to generate JAXB classes using the class generation wizard in IBM Rational Application Developer for WebSphere Software (RAD) 8.x results in the error "NoClassDefFoundError: com.sun.tools.xjc.xjcfacade" when you right-click on {SomeSchema}.xsd > Generate > JAXB Classes.

Symptom

The full error message is as follows:


//-- JVM Launcher
(X) could not find main class: com.sun.tools.xjc.XJCFacade.
Program will exit.
//--


Console reports:


..
... NoClassDefFoundError: com.sun.tools.xjc.XCJFacade
caused by
... java.lang.ClassNotFoundException: com.sun.tools.xjc.XCJFacade
..


Additional errors seen:

The classpath for this project does not appear to contain the necessary libraries to proceed with class generation. Please ensure that a JAXB implementation is available on the classpath.

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"J2EE Tooling","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.4.1;8.0.4.2;8.5;8.5.1;8.5.5;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

More support for:
Rational Application Developer for WebSphere Software

Software version:
8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.4.1, 8.0.4.2, 8.5, 8.5.1, 8.5.5, 9.0

Operating system(s):
Linux, Windows

Document number:
482381

Modified date:
16 June 2018

UID

swg21615629

Manage My Notification Subscriptions