WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

WebSpere data source test connection fails with org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'JavaEEDefaultResources' not found.

  • 1.  WebSpere data source test connection fails with org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'JavaEEDefaultResources' not found.

    Posted Thu April 07, 2022 02:32 PM

    We migrated Websphere v8.5.5.15 deployment manager to v9.0.5.9 while all other nodes stay

    on v8.5.5.15. After the migration when we do the data source test connection, it fails with the

    following error:

    DSRA8040I: Failed to connect to the DataSource "".

    Encountered org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'JavaEEDefaultResources' not found.

    (file:WAS_PROFILE_ROOT/config/cells/xxxCell01/clusters/xxxCluster/resources.xml, 64, 247)

    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.validateCreateObjectFromFactory(XMLHandler.java:2017)

    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1189)

    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1258)

    at com.ibm.websphere.resource.WASXMIHandler.createTopObject(WASXMIHandler.java:75)

    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:894)

    at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:82)

    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:873)

    at org.eclipse.emf.ecore.xmi.impl.SAXWrapper.startElement(SAXWrapper.java:90)

    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)

    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)

    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

    at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:193)

    at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:179)

    at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.basicDoLoad(CompatibilityXMIResourceImpl.java:180)

    at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)

    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)

    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900)

    at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.load(CompatibilityXMIResourceImpl.java:259)

    at com.ibm.websphere.resource.WASResourceImpl.load(WASResourceImpl.java:286)

    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:249)

    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:264)

    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:390)

    at com.ibm.websphere.resource.WASResourceSetImpl.getResource(WASResourceSetImpl.java:325)

    at com.ibm.websphere.resource.WASResourceSetImpl.getResource(WASResourceSetImpl.java:298)

    at com.ibm.ws.runtime.service.ConfigRootImpl.getResource(ConfigRootImpl.java:351)

    at com.ibm.ws.runtime.service.ConfigRootImpl.getResource(ConfigRootImpl.java:321)

    at com.ibm.ws.runtime.service.ConfigRootImpl.getResource(ConfigRootImpl.java:297)

    at com.ibm.ws.management.DataSourceConfigHelperMBean.extractWCCMCommonInfo(DataSourceConfigHelperMBean.java:719)

    at com.ibm.ws.management.DataSourceConfigHelperMBean.testConnection(DataSourceConfigHelperMBean.java:458)



    #Support
    #SupportMigration
    #WebSphereApplicationServer(WAS)


  • 2.  RE: WebSpere data source test connection fails with org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'JavaEEDefaultResources' not found.

    Posted Thu April 07, 2022 02:34 PM

    This is a known issue which was fixed through apar PH39339(fixed in 9.0.510 and later versions)

    PH39339: NODE CONFIGURATION ERROR ON WAS 8.5.5 NODES AFTER UPGRADING DMGR FIXPACK TO WAS 9.0.5.7+

    https://www.ibm.com/support/pages/apar/PH39339

    Fixpack 9.0.5.10/9.0.5.11 can be downloaded from the following location:

    https://www.ibm.com/support/pages/node/715553

    So, please upgrade to the latest fixpack. That should fix the errors.



    #Support
    #SupportMigration
    #WebSphereApplicationServer(WAS)


  • 3.  RE: WebSpere data source test connection fails with org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'JavaEEDefaultResources' not found.

    Posted Thu April 07, 2022 02:46 PM