我在Websphere Application Server 7上部署了一个EAR.在我的代码中,有一部分我尝试将 XML文件解组为一个对象.尝试这样做时出现此错误: java.lang.NoClassDefFoundError: com.ibm.xtq.bcel.util.SyntheticReposit
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)
据我所知,该类是IBM JDK的一部分,在运行时无法找到.有什么我必须在我耳边修改,或者,我猜,它是关于配置/修改WAS配置(甚至应用补丁,如果这是一个错误).
有帮助吗?非常感谢.
(对不起我的英语不好 :) )
同样在这里,有一个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.