"NoSuchBeanException: No bean could be found in the registry for: ..." when deploying multiple SwitchYard applications with Camel services
Issue
- When we deploy a single service, everything works fine. However, when we deploy the second service the camel bean registry of the first service is getting mixed up. It is overridden to point to the bean registry of the second service and subsequently we get "bean not found" exceptions.
- Steps to recreate the issue using a
service1
and aservice2
:- Deploy
service1
- Enable
service1
- Send a request to
service1
; Get a successful response - Deploy
service2
- Enable
service2
- Send a request to
service2
; Get a successful response - Send a request to
service1
; Get an error
- Deploy
-
The log shows:
org.apache.camel.NoSuchBeanException: No bean could be found in the registry for: exampleBean1: org.apache.camel.NoSuchBeanException: No bean could be found in the registry for: exampleBean1
-
Patches installed:
fsw-6.0_3_2014-switchyard.zip
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.