WebSphereApplication NoClassDefFoundError, while unmarshalling XML with JAXB

I deployed the EAR to the Websphere 7 application server. There is a part in my code in which I am trying to decouple the XML file into an object. I get this error when trying to do this:

java.lang.NoClassDefFoundError: com.ibm.xtq.bcel.util.SyntheticRepository (initialization failure) at java.lang.J9VMInternals.initialize(J9VMInternals.java:140) at com.ibm.xtq.bcel.classfile.JavaClass.<init>(JavaClass.java:109) at com.ibm.xtq.bcel.classfile.JavaClass.<init>(JavaClass.java:228) at com.ibm.xtq.bcel.generic.ClassGen.getJavaClass(ClassGen.java:174) at com.ibm.fcg.bcel.FcgClassGenBCEL.dump2(Unknown Source) at com.ibm.fcg.bcel.FcgClassGenBCEL.dump(Unknown Source) at com.ibm.xml.xlxp2.jaxb.unmarshal.codegen.fcg.FCGDeserializationStubGenerator.generate(FCGDeserializationStubGenerator.java:249) at com.ibm.xml.xlxp2.jaxb.codegen.AbstractGeneratedStubFactory.generateByteCode(AbstractGeneratedStubFactory.java:96) at com.ibm.xml.xlxp2.jaxb.unmarshal.codegen.fcg.FCGStubFactory.generateStubByteCode(FCGStubFactory.java:46) at com.ibm.xml.xlxp2.jaxb.codegen.AbstractGeneratedStubFactory.getStubClassConstructor(AbstractGeneratedStubFactory.java:154) at com.ibm.xml.xlxp2.jaxb.unmarshal.codegen.AbstractGeneratedDeserializationStubFactory.createStub(AbstractGeneratedDeserializationStubFactory.java:58) at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationContext.startComplexType(DeserializationContext.java:662) at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationContext.handleRootElementEvent(DeserializationContext.java:303) at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.JAXBDocumentScanner.produceRootElementEvent(JAXBDocumentScanner.java:186) at com.ibm.xml.xlxp2.scan.DocumentScanner.scanRootElement(DocumentScanner.java:2234) at com.ibm.xml.xlxp2.scan.DocumentScanner.scanProlog(DocumentScanner.java:1726) at com.ibm.xml.xlxp2.scan.DocumentScanner.nextEvent(DocumentScanner.java:1316) at com.ibm.xml.xlxp2.scan.DocumentScanner.parseDocumentEntity(DocumentScanner.java:1168) at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.JAXBDocumentScanner.unmarshal(JAXBDocumentScanner.java:125) at com.ibm.xml.xlxp2.jaxb.unmarshal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:120) at com.inditex.lois.core.ws.utilidades.services.impl.AdaptadorServiceImpl.transformarXMLenObjeto(AdaptadorServiceImpl.java:137) 

As far as I know, this class is part of the IBM JDK and cannot be found at runtime. Is there anything I need to change in my ear or, as I believe, all about setting up / modifying a WAS configuration (or even applying a patch if that is a mistake).

Any help? Thank you very much.

(Sorry for my English:))

+4
source share
2 answers

The same thing is APAR: http://www-01.ibm.com/support/docview.wss?uid=swg1IV41639

 Problem conclusion This defect will be fixed in: 6.0.0 SR14 6.0.1 SR6 7.0.0 SR5 . The fix resolved the AccessControlException. SyntheticRepository class can be initialized properly, hence NoClassDefFoundError does not occur. 
+1
source

This exception means that the class com.ibm.xtq.bcel.util.SyntheticRepository found, but failed static initialization. If there is no other message in the log about this, then it is time to open PMR with IBM. Static initializers in WebSphere internal code should not be interrupted during normal use.

+2
source

Source: https://habr.com/ru/post/1446644/


All Articles