PQ76107: Problem with J2EE client samples launchAPI and classLoader | |||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description When running the classLoader sample, a ResourceLoadException is received. When running the classLoader sample, the application output looks like: -------------------------------------------------------------- Running ClassLoaderClientMain from the J2EEAppClientClassLoader.ear file -------------------------------------------------------------- IBM WebSphere Application Server, Release 5.0 J2EE Application Client Tool Copyright IBM Corp., 1997-2002 WSCL0012I: Processing command line arguments. WSCL0013I: Initializing the J2EE Application Client Environment. WSCL0100E: Exception received: com.ibm.etools.archive.exception. ArchiveWrappedException Stack trace of nested exception: com.ibm.etools.archive.exception.ResourceLoadException: IWAE0007E Could not load resource "META-INF/ibm-application-client-bnd.xmi" in archive "J2EEAppClientClassLoaderClient.jar" Stack trace of nested exception: java.lang.NullPointerException at com.ibm.etools.archive.impl.InternalModuleHelper. getDDResourceURIIfProxy(InternalModuleHelper.java:60) at com.ibm.etools.archive.impl.InternalModuleHelper. getDDResourceIfProxy(InternalModuleHelper.java:64) at com.ibm.etools.archive.impl.InternalModuleHelper. appClientBindingsLoaded(InternalModuleHelper.java:146) at com.ibm.etools.archive.impl.InternalModuleHelper. fixupBndOrExtRootsIfNecessary(InternalModuleHelper.java:44) ... more When running the launchAPI sample, the application output looks like: -------------------------------------------------------------- Running LaunchAPIClientMain from the LaunchAPI.ear file using launch API -------------------------------------------------------------- IBM WebSphere Application Server, Release 5.0 J2EE Application Client Tool Copyright IBM Corp., 1997-2002 WSCL0013I: Initializing the J2EE Application Client Environment. launch() failed. See stack trace for details: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:41) at java.lang.reflect.Method.invoke(Method.java:371) at com.ibm.websphere.samples.j2eeappclients.launchapi. LaunchAPIMain.main(LaunchAPIMain.java:83) Caused by: com.ibm.websphere.client.applicationclient. ClientContainerException: com.ibm.etools.archive.exception.ArchiveWrappedException Stack trace of nested exception: com.ibm.etools.archive.exception.ResourceLoadException: IWAE0007E Could not load resource "META-INF/ibm-application-client-bnd.xmi" in archive "LaunchAPIClient.jar" Stack trace of nested exception: java.lang.NullPointerException at com.ibm.etools.archive.impl.InternalModuleHelper. getDDResourceURIIfProxy(InternalModuleHelper.java:60) at com.ibm.etools.archive.impl.InternalModuleHelper. getDDResourceIfProxy(InternalModuleHelper.java:64) at com.ibm.etools.archive.impl.InternalModuleHelper. appClientBindingsLoaded(InternalModuleHelper.java:146) ... moreLocal fix Problem summary **************************************************************** * USERS AFFECTED: WebSphere Application Server developers * * using the samples classLoader or launchAPI * * from the Application Clients install. * **************************************************************** * PROBLEM DESCRIPTION: When running the classLoader sample, * * an ArchiveWrappedException is * * received. * * When running the launchAPI sample, * * an InvocationTargetException is * * received, caused by an * * ArchiveWrappedException. * **************************************************************** * RECOMMENDATION: * **************************************************************** When running the classLoader sample, the application output looks like: -------------------------------------- Running ClassLoaderClientMain from the J2EEAppClientClassLoader.ear file -------------------------------------- IBM WebSphere Application Server, Release 5.0 J2EE Application Client Tool Copyright IBM Corp., 1997-2002 WSCL0012I: Processing command line arguments. WSCL0013I: Initializing the J2EE Application Client Environment. WSCL0100E: Exception received: com.ibm.etools.archive.exception. ArchiveWrappedException Stack trace of nested exception: com.ibm.etools.archive.exception. ResourceLoadException: IWAE0007E Could not load resource "META-INF/ibm-application-client-bnd.xmi" in archive "J2EEAppClientClassLoaderClient.jar" Stack trace of nested exception: java.lang.NullPointerException at com.ibm.etools.archive.impl.InternalModuleHelper. getDDResourceURIIfProxy(InternalModuleHelper.java:60) ... more When running the launchAPI sample, the application output looks like: ------------------------------------------------------- Running LaunchAPIClientMain from the LaunchAPI.ear file using launch API ------------------------------------------------------- IBM WebSphere Application Server, Release 5.0 J2EE Application Client Tool Copyright IBM Corp., 1997-2002 WSCL0013I: Initializing the J2EE Application Client Environment. launch() failed. See stack trace for details: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:41) at java.lang.reflect.Method.invoke(Method.java:371) at com.ibm.websphere.samples.j2eeappclients.launchapi. LaunchAPIMain.main(LaunchAPIMain.java:83) Caused by: com.ibm.websphere.client.applicationclient. ClientContainerException: com.ibm.etools.archive.exception.ArchiveWrappedException Stack trace of nested exception: com.ibm.etools.archive.exception.ResourceLoadException: IWAE0007E Could not load resource "META-INF/ibm-application-client-bnd.xmi" in archive "LaunchAPIClient.jar" Stack trace of nested exception: java.lang.NullPointerException at com.ibm.etools.archive.impl.InternalModuleHelper. getDDResourceURIIfProxy (InternalModuleHelper.java:60) ... moreProblem conclusion The file meta-inf/ibm-application-client-bnd.xmi in the J2EEAppClientClassLoaderClient.jar file in the samples/lib/J2EEAppClients/J2EEAppClientClassLoader.earfile is missing the following line : <applicationClient href="META-INF/application- client.xml#Application-client_ID"/> The file meta-inf/ibm-application-client-bnd.xmi in the LaunchAPIClient.jar file in the samples/lib/J2EEAppClients/LaunchAPI.ear file is missing the following line: <applicationClient href="META-INF/application- client.xml#Application-client_ID"/> Either apply the fix for PQ76107 or complete the following steps: 1. Add line <applicationClient href="META-INF/application- client.xml#Application-client_ID"/> before the line </clientbnd:ApplicationClientBinding> in the file samples\src\J2EEAppClients\ClassLoader\ClassLoaderClient\ META-INF\ibm-application-client-bnd.xmi. 2. Add line <applicationClient href="META-INF/application- client.xml#Application-client_ID"/> before the line </clientbnd:ApplicationClientBinding> in the file samples\src\J2EEAppClients\LaunchAPI\LaunchAPIClient\ META-INF\ibm-application-client-bnd.xmi. 3. Rebuild these samples by following the instructions in the Application Client Samples Gallery (see the section Client Technology Samples -> J2EE application client -> Build It Yourself).Temporary fix Comments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
Publications Referenced
|
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 00A
Software edition:
Reference #: PQ76107
IBM Group: Software Group
Modified date: Jul 16, 2003
(C) Copyright IBM Corporation 2000, 2008. All Rights Reserved.