IBM Support

ClassCastException when performing Java EE related tasks

Troubleshooting


Problem

IBM Rational Application Developer for WebSphere Software reports ClassCastExceptions in a popup window at startup, or in the Error log when trying to perform Java EE related tasks, such as adding modules to an EAR, configuring Utility modules or setting Module Dependencies. These errors prevent you from compiling or building your projects.

Symptom

Java EE related tasks fail, and error messages similar to the following are seen in the workspace and or Error logs:

java.lang.ClassCastException: org.eclipse.jst.j2ee.application.internal.impl.ApplicationImpl cannot be cast to org.eclipse.jst.javaee.application.Application

If you are using Maven to import projects, the error message may look like this:

!ENTRY org.eclipse.core.jobs

!MESSAGE An internal error occurred during: "Updating Maven Configuration".

!STACK 0

java.lang.ClassCastException: org.eclipse.jst.j2ee.application.internal.impl.ApplicationImpl incompatible with org.eclipse.jst.javaee.application.Application
at org.maven.ide.eclipse.wtp.EarProjectConfiguratorDelegate.updateLibDir(Unknown Source)

at
org.maven.ide.eclipse.wtp.EarProjectConfiguratorDelegate.setModuleDependencies(Unknown Source)

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"J2EE Tooling","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.0;7.5.5","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, 7.5.5

Operating system(s):
Windows

Document number:
154669

Modified date:
16 June 2018

UID

swg21474288

Manage My Notification Subscriptions