Only one SwitchYard application works at a time if different EAR are deployed with a SwitchYard application packaged inside it
Issue
- There are multiple
EAR
havingSwitchYard
applications which are packaged and deployed toFuse Service Works 6.0.0
servers. In such a scenario a strange problem is observed. When oneEAR
havingSwitchYard
application is deployed and user tries to send requests to it (e.g. sending SOAP messages to aSOAP binding
in this example) it works fine and return correct response. But as soon anotherEAR
is deployed, the firstEAR
stops working and returns SOAP fault messageSWITCHYARD035452
. However the newEAR
continues to work fine. Now if the firstEAR
is redeployed, the firstEAR
again is accessible, but the secondEAR
stops 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
SwitchYard
orchestration jars within a singleEAR
application.
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, tools, and much more.