Fixes are available
PK98482; 7.0.0.7: Error due to NoClassDefFoundError loading DeserializationStub
7.0.0.9: WebSphere Application Server V7.0 Fix Pack 9 for IBM i
7.0.0.9: WebSphere Application Server V7.0 Fix Pack 9 for Windows
7.0.0.9: WebSphere Application Server V7.0 Fix Pack 9 for AIX
7.0.0.9: WebSphere Application Server V7.0 Fix Pack 9 for HP-UX
7.0.0.9: Java SDK 1.6 SR7 Cumulative Fix for WebSphere Application Server
7.0.0.9: WebSphere Application Server V7.0 Fix Pack 9 for Solaris
7.0.0.9: WebSphere Application Server V7.0 Fix Pack 9 for Linux
7.0.0.11: WebSphere Application Server V7.0 Fix Pack 11 for IBM i
7.0.0.11: WebSphere Application Server V7.0 Fix Pack 11 for Windows
7.0.0.11: WebSphere Application Server V7.0 Fix Pack 11 for HP-UX
7.0.0.11: WebSphere Application Server V7.0 Fix Pack 11 for AIX
7.0.0.11: Java SDK 1.6 SR7 Cumulative Fix for WebSphere Application Server
7.0.0.11: WebSphere Application Server V7.0 Fix Pack 11 for Solaris
7.0.0.11: WebSphere Application Server V7.0 Fix Pack 11 for Linux
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for AIX
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for HP-UX
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for IBM i
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for Linux
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for Solaris
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for Windows
7.0.0.13: Java SDK 1.6 SR8FP1 Cumulative Fix for WebSphere Application Server
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for AIX
7.0.0.15: Java SDK 1.6 SR9 Cumulative Fix for WebSphere Application Server
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for HP-UX
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for IBM i
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Linux
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Solaris
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Windows
7.0.0.17: WebSphere Application Server V7.0 Fix Pack 17
7.0.0.17: Java SDK 1.6 SR9 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.19: WebSphere Application Server V7.0 Fix Pack 19
7.0.0.21: WebSphere Application Server V7.0 Fix Pack 21
7.0.0.23: WebSphere Application Server V7.0 Fix Pack 23
7.0.0.25: WebSphere Application Server V7.0 Fix Pack 25
7.0.0.27: WebSphere Application Server V7.0 Fix Pack 27
7.0.0.29: WebSphere Application Server V7.0 Fix Pack 29
7.0.0.31: WebSphere Application Server V7.0 Fix Pack 31
7.0.0.27: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.33: WebSphere Application Server V7.0 Fix Pack 33
7.0.0.35: WebSphere Application Server V7.0 Fix Pack 35
7.0.0.19: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.21: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere
7.0.0.23: Java SDK 1.6 SR10 FP1 Cumulative Fix for WebSphere
7.0.0.25: Java SDK 1.6 SR11 Cumulative Fix for WebSphere Application Server
7.0.0.27: Java SDK 1.6 SR12 Cumulative Fix for WebSphere Application Server
7.0.0.29: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.45: Java SDK 1.6 SR16 FP60 Cumulative Fix for WebSphere Application Server
7.0.0.31: Java SDK 1.6 SR15 Cumulative Fix for WebSphere Application Server
7.0.0.35: Java SDK 1.6 SR16 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.37: Java SDK 1.6 SR16 FP3 Cumulative Fix for WebSphere Application Server
7.0.0.39: Java SDK 1.6 SR16 FP7 Cumulative Fix for WebSphere Application Server
7.0.0.41: Java SDK 1.6 SR16 FP20 Cumulative Fix for WebSphere Application Server
7.0.0.43: Java SDK 1.6 SR16 FP41 Cumulative Fix for WebSphere Application Server
APAR status
Closed as program error.
Error description
When parsing a JAX-WS SOAP message, the following error is logged in the SystemErr.log file. This occurs when running the webservice as a BLA (business level application) and the JAXB runtime environment is not visible to the application classloader. . java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.ibm.xml.xlxp2.jaxb.codegen.AbstractGeneratedStubFactory.getS tubClassConstructor(AbstractGeneratedStubFactory.java:171) at com.ibm.xml.xlxp2.jaxb.unmarshal.codegen.AbstractGeneratedDeseri alizationStubFactory.createStub(AbstractGeneratedDeserialization StubFactory.java:58) at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationContext.sta rtComplexType(DeserializationContext.java:660) at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationContext.han dleRootElementEvent(DeserializationContext.java:303) at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.JAXBDocumentScanner.produc eRootElementEvent(JAXBDocumentScanner.java:186) at com.ibm.xml.xlxp2.scan.DocumentScanner.scanRootElement(DocumentS canner.java:2234) at com.ibm.xml.xlxp2.scan.DocumentScanner.scanProlog(DocumentScanne r.java:1726) at com.ibm.xml.xlxp2.scan.DocumentScanner.nextEvent(DocumentScanner .java:1316) at com.ibm.xml.xlxp2.scan.DocumentScanner.parseDocumentEntity(Docum entScanner.java:1168) at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.JAXBDocumentScanner.unmars hal(JAXBDocumentScanner.java:125) at com.ibm.xml.xlxp2.jaxb.unmarshal.UnmarshallerImpl.unmarshal(Unma rshallerImpl.java:120) ... Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor Impl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at com.ibm.xml.xlxp2.jaxb.codegen.AbstractGeneratedStubFactory$Clas sLoaderMethods.defineClass(AbstractGeneratedStubFactory.java:323 ) at com.ibm.xml.xlxp2.jaxb.codegen.AbstractGeneratedStubFactory$Clas sLoaderMethods.defineClass(AbstractGeneratedStubFactory.java:317 ) at com.ibm.xml.xlxp2.jaxb.codegen.AbstractGeneratedStubFactory.getS tubClassConstructor(AbstractGeneratedStubFactory.java:155) ... 20 more Caused by: java.lang.NoClassDefFoundError: com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationStub at java.lang.ClassLoader.defineClassImpl(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:265) at java.lang.ClassLoader.defineClass(ClassLoader.java:202) ... 27 more Caused by: java.lang.ClassNotFoundException: com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationStub at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass( BundleLoader.java:402) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass( BundleLoader.java:347) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadCla ss(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(ClassLoader.java:609) ... 30 more
Local fix
Add the jars to the application. Or, you could create a WebSphere AppServer shared library to point to them.
Problem summary
**************************************************************** * USERS AFFECTED: All IBM WebSphere Application Server V7.0 * * users of JAX-WS or JAXB. * **************************************************************** * PROBLEM DESCRIPTION: RuntimeException error occurs * * indicating a NoClassDefFoundError * * loading DeserializationStub * **************************************************************** * RECOMMENDATION: Install a fix pack that contains this APAR. * **************************************************************** When a customer uses the JAXB API, or uses JAX-WS web services, or uses another stack product that uses JAXB, a RuntimeException may occur. Here is an example error: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.ibm.xml.xlxp2.jaxb.unmarshal.codegen.AbstractGeneratedStubFa ctory.getStubClassConstructor(AbstractGeneratedStubFactory.java: 153) at com.ibm.xml.xlxp2.jaxb.unmarshal.codegen.AbstractGeneratedStubFa ctory.createStub(AbstractGeneratedStubFactory.java:84) at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationContext.sta rtComplexType(DeserializationContext.java:646) at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationContext.han dleRootElementEvent(DeserializationContext.java:298) at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.JAXBDocumentScanner.produc eRootElementEvent(JAXBDocumentScanner.java:186) at com.ibm.xml.xlxp2.scan.DocumentScanner.scanRootElement(DocumentS canner.java:2234) at com.ibm.xml.xlxp2.scan.DocumentScanner.scanProlog(DocumentScanne r.java:1726) at com.ibm.xml.xlxp2.scan.DocumentScanner.nextEvent(DocumentScanner .java:1316) at com.ibm.xml.xlxp2.scan.DocumentScanner.parseDocumentEntity(Docum entScanner.java:1168) at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.JAXBDocumentScanner.unmars hal(JAXBDocumentScanner.java:147) at com.ibm.xml.xlxp2.jaxb.unmarshal.UnmarshallerImpl.unmarshal(Unma rshallerImpl.java:158) ... Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor Impl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:599) at com.ibm.xml.xlxp2.jaxb.unmarshal.codegen.AbstractGeneratedStubFa ctory$ClassLoaderMethods.defineClass(AbstractGeneratedStubFactor y.java:344) at com.ibm.xml.xlxp2.jaxb.unmarshal.codegen.AbstractGeneratedStubFa ctory$ClassLoaderMethods.defineClass(AbstractGeneratedStubFactor y.java:338) at com.ibm.xml.xlxp2.jaxb.unmarshal.codegen.AbstractGeneratedStubFa ctory.getStubClassConstructor(AbstractGeneratedStubFactory.java: 137) ... 11 more Caused by: java.lang.NoClassDefFoundError: com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationStub at java.lang.ClassLoader.defineClass (ClassLoader.java:265) at java.lang.ClassLoader.defineClass (ClassLoader.java:202) ... 18 more Caused by: java.lang.ClassNotFoundException: com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationStub at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.j ava:65) at java.net.URLClassLoader.findClass (URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:643) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:345) at java.lang.ClassLoader.loadClass(ClassLoader.java:609) at java.lang.ClassLoader.defineClassImpl(Native Method) ... 20 more The error indicates that the JAXB Unmarshaller API does not have access to some of the classes that are part of the JAXB implementation.
Problem conclusion
The JAXB Unmarshaller generates code which requires that the application's ClassLoader has access to classes which are part of the JAXB implementation. But there are environments such as those which use OSGi where this requirement cannot be satisfied. To allow JAXB applications to work in such environments the implementation was fixed so that when the ClassLoader does not have access to the JAXB implementation classes an alternate path through the Unmarshaller is taken. The fix for this APAR is currently targeted for inclusion in fix pack 7.0.0.9. Please refer to the Recommended Updates page for delivery information: http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
Temporary fix
Comments
APAR Information
APAR number
PK98482
Reported component name
WEBS APP SERV N
Reported component ID
5724H8800
Reported release
700
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-10-13
Closed date
2009-11-05
Last modified date
2009-11-05
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
WEBS APP SERV N
Fixed component ID
5724H8800
Applicable component levels
R700 PSY
UP
Document Information
Modified date:
25 October 2021