Only one SwitchYard application works at a time if different EAR are deployed with a SwitchYard application packaged inside it
Issue
- There are multiple
EARhavingSwitchYardapplications which are packaged and deployed toFuse Service Works 6.0.0servers. In such a scenario a strange problem is observed. When oneEARhavingSwitchYardapplication is deployed and user tries to send requests to it (e.g. sending SOAP messages to aSOAP bindingin this example) it works fine and return correct response. But as soon anotherEARis deployed, the firstEARstops working and returns SOAP fault messageSWITCHYARD035452. However the newEARcontinues to work fine. Now if the firstEARis redeployed, the firstEARagain is accessible, but the secondEARstops working and returnsSWITCHYARD035452.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"></SOAP>
<soap:Body>
<SOAP-ENV:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>SWITCHYARD035452: Timed out after 15000 ms waiting on synchronous response from target service '{urn:com.test.sample:SY-SERVICE-SOAP:1.0}SOAPBindingServicePortType'.</faultstring>
</SOAP-ENV:Fault>
</soap:Body>
</soap:Envelope>
No matter which technique is followed to deploy the application (i.e. through Admin Console , CLI or even deploying the archive in \deployments folder) the issue remains the same. Is it really a known issue and how this issue can be fixed?
- Users get the following exception when deploying multiple
SwitchYardorchestration jars within a singleEARapplication.
java.lang.IllegalStateException: Unable to find BeanManager. Please ensure that you configured the CDI implementation of your choice properly
The issue seems to be similar to what has been described and solved in the following forum [1] JIRA [2] issues. Is there a workaround/fix available in FSW 6.0.0 for this issue ?
[1] Problem with multiple modules deployed in EARs
[2] Threads started from Camel do not have correct namespace context
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.0.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
