Deployment of mediation component fails with error "java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Platform"

Deployment of mediation component fails with error "java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Platform"

book

Article ID: KB0090519

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix Service Grid -
Not Applicable -

Description

Resolution:
Description:
============
We are not able to deploy one application with mediation component; here is the error stack.

[AMXAdminTask] ERROR - Application Deploy with Start failed
[AMXAdminTask] ERROR - Start binding 'soapreference_binding1' on node 'MIND_AMXBPM_Node' cancelled because Start component 'presentationcrmgateway' on node 'MIND_AMXBPM_Node' failed
[AMXAdminTask] ERROR - Start component 'presentationcrmgateway' on node 'MIND_AMXBPM_Node' failed : java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Platform
[AMXAdminTask] ERROR - java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Platform
[AMXAdminTask]     at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232)
[AMXAdminTask]     at java.util.concurrent.FutureTask.get(FutureTask.java:91)
[AMXAdminTask]     at com.tibco.amf.platform.runtime.componentframework.internal.core.ComponentFramework.executeDeploymentTask(ComponentFramework.java:339)
[AMXAdminTask]     at com.tibco.amf.platform.runtime.componentframework.internal.component.ImplementationComponent.prepareImplementation(ImplementationComponent.java:797)
[AMXAdminTask]     at com.tibco.amf.platform.runtime.componentframework.internal.component.ImplementationComponent.prepare(ImplementationComponent.java:751)
[AMXAdminTask]     at com.tibco.amf.platform.runtime.componentframework.internal.component.BaseComponent.doStart(BaseComponent.java:988)
[AMXAdminTask]     at com.tibco.amf.platform.runtime.componentframework.internal.component.BaseComponent.requestStart(BaseComponent.java:972)
[AMXAdminTask]     at com.tibco.amf.platform.runtime.componentframework.internal.component.statemachine.ComponentActions$11.execute(ComponentActions.java:304)
[AMXAdminTask]     at com.tibco.amf.platform.runtime.componentframework.internal.component.statemachine.ComponentStateMachine.handleEvent(ComponentStateMachine.java:878)
[AMXAdminTask]     at com.tibco.amf.platform.runtime.componentframework.internal.core.ComponentFramework.processStartCommand(ComponentFramework.java:2617)
[AMXAdminTask]     at com.tibco.amf.platform.runtime.componentframework.internal.core.ComponentFramework.process(ComponentFramework.java:2222)
[AMXAdminTask]     at com.tibco.amf.platform.runtime.componentframework.internal.core.ComponentFramework.run(ComponentFramework.java:1920)
[AMXAdminTask]     at java.lang.Thread.run(Thread.java:662)
[AMXAdminTask] Caused by: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Platform

Environment:
===========
TIBCO ActiveMatrix(R) Service Grid 3.1.5
TIBCO ActiveMatrix(R) Service Bus  3.1.5

Symptoms:
========
Looking into the node log, we may find a FileNotFoundException which indicates cause of the issue.

java.io.FileNotFoundException: /resource/MIND_SOA_Integration/Service%20Descriptors/Presentation-CrmGatewayBpmService.wsdl (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.&ltinit>(FileInputStream.java:120)
    at java.io.FileInputStream.&ltinit>(FileInputStream.java:79)
    at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
    at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
    at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(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.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at org.eclipse.wst.wsdl.util.WSDLResourceImpl.getDocument(WSDLResourceImpl.java:451)
    at org.eclipse.wst.wsdl.util.WSDLResourceImpl.getDocument(WSDLResourceImpl.java:492)
    at org.eclipse.wst.wsdl.util.WSDLResourceImpl.doLoad(WSDLResourceImpl.java:280)
    at org.eclipse.wst.wsdl.util.WSDLResourceImpl.doLoad(WSDLResourceImpl.java:358)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1445)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1241)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)
    at org.eclipse.bpel.model.resource.BPELResourceSetImpl.getResource(BPELResourceSetImpl.java:107)
    at org.eclipse.bpel.model.util.XSDImportResolver.findAndLoad(XSDImportResolver.java:73)
    at org.eclipse.bpel.model.util.WSDLImportResolver.resolve(WSDLImportResolver.java:70)
    at org.eclipse.bpel.model.resource.BPELResourceImpl.getEObjectExtended(BPELResourceImpl.java:209)
    at org.eclipse.bpel.model.resource.BPELResourceImpl.getEObject(BPELResourceImpl.java:160)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:219)
    at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:202)
    at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:262)
    at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eResolveProxy(BasicEObjectImpl.java:1470)
    at org.eclipse.bpel.model.impl.PartnerLinkImpl.getPartnerRole(PartnerLinkImpl.java:226)
    at com.tibco.amsb.core.common.mediation.model.translator.impl.EndpointsTranslator.translate(EndpointsTranslator.java:70)

Then, if open SOA project out of which the DAA was built, we can find that Presentation-CrmGatewayBpmService.wsdl is not stored in /MIND_SOA_Integration/Service%20Descriptors/ but a different project location, E.g. /MIND_Common/Service%20Descriptors/.

Cause:
=====
It's a project refactoring issue of the product, which may cause mediation referring to an invalid WSDL location under certain circumstances.

Resolution:
==========
1. According to Support test, the mediation flow can be automatically corrected by importing the project into AMX 3.2.0 workspace and rebuilding the DAA.

2. Alternatively in AMX 3.1.x workspace, recreate problematic mediation flow by refactoring to correct WSDL location.

3. For any further related  problem, please contact Tibco Support (support@tibco.com) with following materials as well as detailed problem description.
   a. Complete SOA project
   b. Node log with comprehensive error stack.
   c. &ltTIBCO_HOME>/_installInfo in an archive

Attachments:
===========
N/A

References:
==========
Defect MED-3010 : App deployment failing with 'java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Platform"

Issue/Introduction

Deployment of mediation component fails with error "java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Platform"