Fix (APAR): PK09937 Status: Fix Release: 6.0.1.2 Operating System: All Supersedes Fixes: PK07128 CMVC Defect: PK07128 Byte size of APAR: 44650 Date: 2005-08-09 Abstract: WCCM CAUSING WS_ANT MODULE VALIDATOR ERROR IN 6.0.1.2 Description/symptom of problem: The test case is a ws_ant test and fails on Windows and iSeries with the latest 6.0.1.2 build. To recreate: ws_ant -buildfile ModuleValidator.xml where ModuleValidator.xml contains the following: I put in some System.out.printlns in the ws_ant task class to get the exception. This is what I see: (The prefix '[wsValidateModule]' has been ommitted from the trace lines, below: com.ibm.etools.j2ee.commonarchivecore.exception. ResourceLoadException: IWAE0007E Could not load resource "META-INF/ibm-application-ext.xmi" in archive "C:\websphere\6.0\currentnd/installableApps/ DefaultApplication.ear" !Stack_trace_of_nested_exce! com.ibm.etools.j2ee.exception.WrappedRuntimeException: Exception occurred loading META-INF/ibm-application-ext.xmi !Stack_trace_of_nested_exce! Wrapped exception java.io.IOException: java.lang.IllegalStateException: zip file closed at com.ibm.etools.j2ee.commonarchivecore.strategy. ZipFileLoadStrategyImpl.getInputStream (ZipFileLoadStrategyImpl.java:96) at com.ibm.etools.j2ee.commonarchivecore.impl.ContainerImpl. primGetInputStream(ContainerImpl.java:258) at com.ibm.etools.j2ee.commonarchivecore.impl.FileImpl. getInputStream(FileImpl.java:169) at com.ibm.etools.j2ee.commonarchivecore.impl.ContainerImpl. getInputStream(ContainerImpl.java:235) at com.ibm.etools.j2ee.commonarchivecore.helpers. ArchiveURIConverterImpl.createInputStream (ArchiveURIConverterImpl.java:63) at org.eclipse.emf.ecore.resource.impl.ResourceImpl. load(ResourceImpl.java:738) at com.ibm.wtp.emf.resource.CompatibilityXMIResourceImpl. load(CompatibilityXMIResourceImpl.java:76) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl. demandLoad(ResourceSetImpl.java:247) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl. demandLoadHelper(ResourceSetImpl.java:262) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl. getResource(ResourceSetImpl.java:346) at com.ibm.ejs.models.base.bindings.commonbnd. AbstractTraversalHelper. getBindingOrExtensionInExistingResource (AbstractTraversalHelper.java:96) at com.ibm.ejs.models.base.bindings.commonbnd. AbstractTraversalHelper.getBindingOrExtension (AbstractTraversalHelper.java:72) at com.ibm.ejs.models.base.extensions.helper. CommonExtensionsHelper.getExtension (CommonExtensionsHelper.java:28) at com.ibm.ejs.models.base.extensions.applicationext. ApplicationExtensionsHelper.getApplicationExtension (ApplicationExtensionsHelper.java:43) at com.ibm.etools.commonarchive.impl.EARFileImpl. getExtensions(EARFileImpl.java:522) at com.ibm.websphere.ant.tasks.ModuleValidator. validateEARFile(ModuleValidator.java:167) at com.ibm.websphere.ant.tasks.ModuleValidator. validate(ModuleValidator.java:135) at com.ibm.websphere.ant.tasks.ModuleValidator. execute(ModuleValidator.java:98) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget (Project.java:1339) at org.apache.tools.ant.Project.executeTargets (Project.java:1255) at org.apache.tools.ant.Main.runBuild(Main.java:609) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at com.ibm.ws.bootstrap.WSLauncher.main (WSLauncher.java:190) Wrapped by org.eclipse.emf.common.util.WrappedException: java.lang.IllegalStateException: zip file closed at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl. demandLoadHelper(ResourceSetImpl.java:270) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl. getResource(ResourceSetImpl.java:346) at com.ibm.ejs.models.base.bindings.commonbnd. AbstractTraversalHelper. getBindingOrExtensionInExistingResource (AbstractTraversalHelper.java:96) at com.ibm.ejs.models.base.bindings.commonbnd. AbstractTraversalHelper.getBindingOrExtension (AbstractTraversalHelper.java:72) at com.ibm.ejs.models.base.extensions.helper. CommonExtensionsHelper.getExtension (CommonExtensionsHelper.java:28) at com.ibm.ejs.models.base.extensions.applicationext. ApplicationExtensionsHelper.getApplicationExtension (ApplicationExtensionsHelper.java:43) at com.ibm.etools.commonarchive.impl.EARFileImpl. getExtensions(EARFileImpl.java:522) at com.ibm.websphere.ant.tasks.ModuleValidator. validateEARFile(ModuleValidator.java:167) at com.ibm.websphere.ant.tasks.ModuleValidator. validate(ModuleValidator.java:135) at com.ibm.websphere.ant.tasks.ModuleValidator. execute(ModuleValidator.java:98) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget (Project.java:1339) at org.apache.tools.ant.Project.executeTargets (Project.java:1255) at org.apache.tools.ant.Main.runBuild(Main.java:609) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at com.ibm.ws.bootstrap.WSLauncher.main (WSLauncher.java:190) Directions to apply fix: NOTE: YOU MUST FIRST DOWNLOAD THE UPDATE INSTALLER TOOL IN ORDER TO INSTALL A FIX. The Fix Installer can be downloaded from the following link: http://www-3.ibm.com/software/webservers/appserv/support/index.html 1) Create temporary "fix" directory to store the jar file: UNIX: /tmp/WebSphere/fix Windows: c:\temp\WebSphere\fix 2) Copy jar file to the directory 3) Shutdown WebSphere 4) Follow the Fix installation instructions that are packaged with the Fix Installer on how to install the Fix. 5) Restart WebSphere 6) The temp directory may be removed. Directions to remove fix: NOTE: FIXES MUST BE REMOVED IN THE ORDER THEY WERE APPLIED. DO NOT REMOVE A FIX UNLESS ALL FIXES APPLIED AFTER IT HAVE FIRST BEEN REMOVED. YOU MAY REAPPLY ANY REMOVED FIX. Example: If your system has fix1, fix2, and fix3 applied in that order and fix2 is to be removed, fix3 must be removed first, fix2 removed, and fix3 re-applied. 1) Shutdown WebSphere 2) Follow the instructions that are packaged with the Fix Installer on how to uninstall the Fix. 3) Restart WebSphere Directions to re-apply fix: 1) Shutdown WebSphere 2) Follow the Fix instructions that are packaged with the Fix Installer on how to uninstall and reinstall the Fix. 3) Restart WebSphere Additional Information: This ifix replaces the fix 6.0.1.2-WS-WAS-IFPK07128.pak. The prior ifix may (incorrectly) be installed on BASE installations. If installed on BASE, the prior ifix causes an error when uninstalled. An uninstall occurs, for example when installing any service pack or refresh pack. The prior ifix is correct for ND installations, however, to avoid confusion, even for ND the prior ifix is being replaced with the ND version of the new ifix. The new ifix has two versions: 6.0.1.2-WS-WASBASE-IFPK09937.pak 6.0.1.2-WS-WASND-IFPK09937.pak These two version are, respectively, for BASE and ND installations.