Fixes are available
Rational Application Developer for WebSphere Software 9.0
Rational Software Architect 9.0
Rational Software Architect for WebSphere Software 9.0
Rational Application Developer for WebSphere Software Fix Pack 3 (8.0.4.3) for 8.0.4
Rational Application Developer Standard Edition Fix Pack 3 (8.0.4.3) for 8.0.4
APAR status
Closed as program error.
Error description
Abstract: Attempts to export an EAR results in an error 'org.eclipse.core.commands.ExecutionException: Error exporting [EAR name]' Problem: This can occur if you have Linked Resources in your workspace. Recreate steps are: 1)Create a directory structure like the following and include simple text files: c:\temp\files\file1.txt c:\temp\files\directory\file2.txt 2) Create a Dynamic Web Project with simple class files created under a package. 3) Expand the [Web Project]\Java Resources\src folder 4) Right click on one of your package names and select Import ? General ? File System. Next. 5) Navigate to the c:\temp\files\ directory. 6) Check mark the 'files' directory in the file window. This will check mark the file1.txt file as well. 7) Take the default for 'Into folder' and leave the 'Overwrite existing resources without warning' and 'Create complete folder structure' blank. 8) Select Advanced. Select 'Create links in workspace', 'Create virtual folders', and 'Create link locations relative to: PROJECT_LOC'. 9) Select Finish. Do a Project ? Clean. RESULT: This will add to the workspace file.txt under [package name] and file2.txt under [package name].directory. 10) Try to export the EAR file. You will get the following error: org.eclipse.core.commands.ExecutionException: Error exportingc:/Test.ear at org.eclipse.jst.j2ee.internal.archive.operations.ComponentExport Operation.execute(Unknown Source) at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPa usibleOperationImpl$1.run(Unknown Source) at org.eclipse.core.internal.resources.Workspace.run(Unknown Source) at .......... Caused by: org.eclipse.jst.jee.archive.ArchiveSaveFailureException: org.eclipse.jst.jee.archive.ArchiveSaveFailureException: java.lang.NullPointerException at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentAr chiver.saveArchive(Unknown Source) at org.eclipse.jst.j2ee.internal.archive.operations.ComponentExport Operation.export(Unknown Source) ... 11 more Caused by: org.eclipse.jst.jee.archive.ArchiveSaveFailureException: java.lang.NullPointerException at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentAr chiver.saveArchive(Unknown Source) at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentAr chiver.saveChildModules(Unknown Source) ... 13 more Caused by: java.lang.NullPointerException at org.eclipse.wst.common.componentcore.internal.flat.FlatFolder.ge tAdapter(Unknown Source) at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentAr chiver.addZipEntry(Unknown Source) at org.eclipse.jst.j2ee.internal.archive.operations.FlatComponentAr chiver.saveFlatResources(Unknown Source)........... ... 15 more Local fix: To export then EAR file you need to remove the linked resources.
Local fix
Problem summary
Attempts to export an EAR with virtual folders linked to the project results in an error "org.eclipse.core.commands.ExecutionException: Error exporting [EAR name]"
Problem conclusion
Validation for physical location of the linked resources was added. The fix for this APAR is included in Rational Application Developer v8.0.4.3.
Temporary fix
Comments
APAR Information
APAR number
PM83770
Reported component name
RATL APP DEV WI
Reported component ID
5724J1901
Reported release
804
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2013-02-27
Closed date
2013-10-28
Last modified date
2013-10-28
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
R804 PSY
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":"8.0.4","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
28 October 2013