A fix is available
APAR status
Closed as program error.
Error description
IBM Rational Application Developer v 7.5.3, 7.5.4 and 7.5.5. If an EAR project is using J2EE 1.4 while it contains a J2EE 5 a pplication deployment descriptor. The error: Exception in thread 'Annotation JobManager Checker' java.lang.Cl assCastException: org.eclipse.jst.j2ee.application.internal.impl .ApplicationImpl incompatible with org.eclipse.jst.javaee.applic ation.Application is thrown when opening or building the project. Steps to reproduce: Create an EAR project which is set to use J2EE 1.4 while it cont ains a J2EE 5 application deployment descriptor. (org.eclipse.wst.common.project.facet.core.xml with a ?install ed facet='jst.ear' version='1.4' /? instead of ?installed facet='jst.ear' version='5.0' /? This will cause the following entries in the .log: !ENTRY org.eclipse.core.resources 4 2 2010-02-18 12:56:02.581 !MESSAGE Problems occurred when invoking code from plug-in: 'org .eclipse.core.resources'. !STACK 0 java.lang.ClassCastException: org.eclipse.jst.j2ee.application.i nternal.impl.ApplicationImpl incompatible with org.eclipse.jst.javaee.application.Application at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponent ClasspathUpdater.isEARLibraryDirectory(Unknown Source) at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponent ClasspathUpdater.visit(Unknown Source) ... !ENTRY org.eclipse.jst.j2ee 4 2 2010-02-18 12:56:03.003 !MESSAGE Problems occurred when invoking code from plug-in: 'org .eclipse.jst.j2ee'. !STACK 0 java.lang.ClassCastException: org.eclipse.jst.j2ee.application.i nternal.impl.ApplicationImpl incompatible with org.eclipse.jst.javaee.application.Application at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponent ClasspathContainer.getEARLibDir(Unknown Source) at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponent ClasspathContainer.getBaseEARLibRefs(Unknown Source) .. !ENTRY org.eclipse.jst.j2ee 4 0 2010-02-18 12:56:03.128 !MESSAGE Exception thrown. !STACK 0 java.lang.ClassCastException: org.eclipse.jst.j2ee.application.i nternal.impl.ApplicationImpl incompatible with org.eclipse.jst.javaee.application.Application at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponent ClasspathContainer.getEARLibDir(Unknown Source) at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponent ClasspathContainer.getBaseEARLibRefs(Unknown Source) at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponent ClasspathContainer.requiresUpdate(Unknown Source) at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponent ClasspathContainer.refresh(Unknown Source) ...
Local fix
Problem summary
We were not checking the facet version in addition to the project version leading to the classcast exception in scenarios such as the customer's.
Problem conclusion
We were not checking the facet version in addition to the project version leading to the classcast exception in scenarios such as this. Fix delivered in Rational Application Developer V7.5.51
Temporary fix
Comments
APAR Information
APAR number
PM07949
Reported component name
RATL APP DEV WI
Reported component ID
5724J1901
Reported release
753
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2010-02-18
Closed date
2010-04-01
Last modified date
2010-04-01
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
RATL APP DEV WI
Fixed component ID
5724J1901
Applicable component levels
R753 PSN
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.3","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
01 April 2010