-
1. Re: Service failing to restart with error No bean found in registry for mq connection factory
igarashitm Oct 14, 2016 4:47 AM (in response to ravi21588)Is this a duplicate of Service failing to restart with error No bean found in registry for mq connection factory ? If so can you delete one of these?
-
2. Re: Service failing to restart with error No bean found in registry for mq connection factory
ravi21588 Oct 14, 2016 4:58 AM (in response to igarashitm)Hi Tom,
There is only one discussion that i have raised,and the link you have mentioned routes to same page.
-
4. Re: Service failing to restart with error No bean found in registry for mq connection factory
ravi21588 Oct 14, 2016 6:08 AM (in response to igarashitm)No Tom this one seems to be a different error.
This happens during service startup and the No consumers available on endpoint: Endpoint Error happens at runtime.
-
5. Re: Service failing to restart with error No bean found in registry for mq connection factory
igarashitm Oct 14, 2016 6:15 AM (in response to ravi21588)So I couldn't even see those two are different questions as it doesn't contain any clue
-
6. Re: Service failing to restart with error No bean found in registry for mq connection factory
ravi21588 Oct 14, 2016 9:00 AM (in response to igarashitm)Attached the logs and XML file.
Can you please help now?
-
7. Re: Service failing to restart with error No bean found in registry for mq connection factory
igarashitm Oct 14, 2016 9:39 PM (in response to ravi21588)You may need to add an dependency on RAR, see this for an example
quickstarts/jboss-deployment-structure.xml at master · jboss-switchyard/quickstarts · GitHub
-
8. Re: Service failing to restart with error No bean found in registry for mq connection factory
ravi21588 Oct 17, 2016 10:30 AM (in response to igarashitm)Hi Tom,
The fix did not work still iam getting the same error,any idea.
19:50:27,467 INFO [org.apache.camel.impl.DefaultShutdownStrategy] (Camel (camel-4) thread #4 - ShutdownTask) Route: direct:{urn:com.agcs.bih.gg.in.search:GGInSearch:1.0}GGInSearch/ClawsInFoundService shutdown complete, was consuming from: Endpoint[direct://%7Burn:com.agcs.bih.gg.in.search:GGInSearch:1.0%7DGGInSearch/ClawsInFoundService]
19:50:27,556 INFO [org.apache.camel.impl.DefaultShutdownStrategy] (Camel (camel-4) thread #4 - ShutdownTask) Route: direct:{urn:com.agcs.bih.gg.in.search:GGInSearch:1.0}GGInSearch/ExceptionHandlerService shutdown complete, was consuming from: Endpoint[direct://%7Burn:com.agcs.bih.gg.in.search:GGInSearch:1.0%7DGGInSearch/ExceptionHandlerService]
19:50:27,578 INFO [org.apache.camel.impl.DefaultShutdownStrategy] (Camel (camel-4) thread #4 - ShutdownTask) Route: direct:{urn:com.agcs.bih.gg.in.search:GGInSearch:1.0}GGInSearch/AuditLoggerService shutdown complete, was consuming from: Endpoint[direct://%7Burn:com.agcs.bih.gg.in.search:GGInSearch:1.0%7DGGInSearch/AuditLoggerService]
19:50:27,607 INFO [org.apache.camel.impl.DefaultShutdownStrategy] (Camel (camel-4) thread #4 - ShutdownTask) Route: direct:{urn:com.agcs.bih.gg.in.search:GGInSearch:1.0}GGInSearch/GGInSearchService shutdown complete, was consuming from: Endpoint[direct://%7Burn:com.agcs.bih.gg.in.search:GGInSearch:1.0%7DGGInSearch/GGInSearchService]
19:50:27,639 INFO [org.apache.camel.impl.DefaultShutdownStrategy] (Camel (camel-4) thread #4 - ShutdownTask) Route: GGOutFoundRouter shutdown complete, was consuming from: Endpoint[switchyard://GGOutFoundService]
19:50:27,652 INFO [org.apache.camel.impl.DefaultShutdownStrategy] (MSC service thread 1-3) Graceful shutdown of 12 routes completed in 0 seconds
19:50:27,715 INFO [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-3) TypeConverterRegistry utilization[attempts=17, hits=5, misses=12, failures=0] mappings[total=181, misses=2]
19:50:27,752 INFO [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-3) Apache Camel 1.1.1-p5-redhat-1 (CamelContext: camel-4) is shutdown in 0.854 seconds. Uptime 10.300 seconds.
19:50:27,765 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."GGInSearch.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."GGInSearch.jar".SwitchYardService: org.switchyard.SwitchYardException: org.apache.camel.FailedToCreateRouteException: Failed to create route V1CamelJmsBindingModel/GGOutFoundService@jmsoutfound#1970355523: Route[[From[jms:queue:GG.CLAWS.SEARCH.OUT?connectionFactory=... because of Failed to resolve endpoint: jms://queue:GG.CLAWS.SEARCH.OUT?connectionFactory=%23jboss%2FMQConnectionFactory due to: No bean could be found in the registry for: jboss/MQConnectionFactory of type: javax.jms.ConnectionFactory
at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:84)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
Caused by: org.switchyard.SwitchYardException: org.apache.camel.FailedToCreateRouteException: Failed to create route V1CamelJmsBindingModel/GGOutFoundService@jmsoutfound#1970355523: Route[[From[jms:queue:GG.CLAWS.SEARCH.OUT?connectionFactory=... because of Failed to resolve endpoint: jms://queue:GG.CLAWS.SEARCH.OUT?connectionFactory=%23jboss%2FMQConnectionFactory due to: No bean could be found in the registry for: jboss/MQConnectionFactory of type: javax.jms.ConnectionFactory
at org.switchyard.component.camel.common.handler.InboundHandler.<init>(InboundHandler.java:71)
at org.switchyard.component.camel.common.deploy.BaseBindingActivator.createInboundHandler(BaseBindingActivator.java:51)
at org.switchyard.component.camel.common.deploy.BaseBindingActivator.activateBinding(BaseBindingActivator.java:43)
at org.switchyard.deploy.internal.Deployment.deployServiceBindings(Deployment.java:618)
at org.switchyard.deploy.internal.Deployment.start(Deployment.java:145)
at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:127)
at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:77)
... 5 more
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route V1CamelJmsBindingModel/GGOutFoundService@jmsoutfound#1970355523: Route[[From[jms:queue:GG.CLAWS.SEARCH.OUT?connectionFactory=... because of Failed to resolve endpoint: jms://queue:GG.CLAWS.SEARCH.OUT?connectionFactory=%23jboss%2FMQConnectionFactory due to: No bean could be found in the registry for: jboss/MQConnectionFactory of type: javax.jms.ConnectionFactory
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)
at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:731)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1803)
at org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:675)
at org.apache.camel.impl.DefaultCamelContext.addRouteDefinition(DefaultCamelContext.java:680)
at org.switchyard.component.camel.common.handler.InboundHandler.<init>(InboundHandler.java:69)
... 11 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: jms://queue:GG.CLAWS.SEARCH.OUT?connectionFactory=%23jboss%2FMQConnectionFactory due to: No bean could be found in the registry for: jboss/MQConnectionFactory of type: javax.jms.ConnectionFactory
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:488)
at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:61)
at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:857)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:172)
... 16 more
Caused by: org.apache.camel.NoSuchBeanException: No bean could be found in the registry for: jboss/MQConnectionFactory of type: javax.jms.ConnectionFactory
at org.apache.camel.util.CamelContextHelper.mandatoryLookup(CamelContextHelper.java:141)
at org.apache.camel.util.EndpointHelper.resolveReferenceParameter(EndpointHelper.java:320)
at org.apache.camel.util.EndpointHelper.resolveReferenceParameter(EndpointHelper.java:302)
at org.apache.camel.impl.DefaultComponent.resolveAndRemoveReferenceParameter(DefaultComponent.java:304)
at org.apache.camel.impl.DefaultComponent.resolveAndRemoveReferenceParameter(DefaultComponent.java:283)
at org.apache.camel.component.jms.JmsComponent.createEndpoint(JmsComponent.java:503)
at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:91)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:469)
... 24 more
-
9. Re: Service failing to restart with error No bean found in registry for mq connection factory
ravi21588 Nov 10, 2016 6:05 AM (in response to ravi21588)After Investigation found that the connection factory registers after the camel route starts.
Attached logs.
(MSC service thread 1-3) Route: direct:{urn:com.company.esb.gg.in.search:GGInSearch:1.0}GGOutFound/ClawsInFoundService started and consuming from: Endpoint[direct://%7Burn:com.agcs.bih.gg.in.search:GGInSearch:1.0%7DGGOutFound/ClawsInFoundService]
(MSC service thread 1-3) Route: direct:{urn:com.company.esb.gg.in.search:GGInSearch:1.0}GGOutFound/ClawsInErrorService started and consuming from: Endpoint[direct://%7Burn:com.agcs.bih.gg.in.search:GGInSearch:1.0%7DGGOutFound/ClawsInErrorService]
(MSC service thread 1-1) IJ020001: Required license terms for file:/C:/PANNEER/Software/FSW_6.0/EAP_P6/jboss-eap-6.1/standalone/tmp/vfs/temp/temp2c7feb7f9e32c5de/wmq.jmsra.rar-eda5d27f652bf17c/contents/
(MSC service thread 1-3) Route: GGOutFoundRouter started and consuming from: Endpoint[switchyard://GGOutFoundService]
(MSC service thread 1-3) Route: direct:{urn:com.company.esb.gg.in.search:GGInSearch:1.0}ClawsOutSearchService started and consuming from: Endpoint[direct://%7Burn:com.agcs.bih.gg.in.search:GGInSearch:1.0%7DClawsOutSearchService]
(MSC service thread 1-3) Route: direct:{urn:com.company.esb.gg.in.search:GGInSearch:1.0}GGOutFoundService started and consuming from: Endpoint[direct://%7Burn:com.agcs.bih.gg.in.search:GGInSearch:1.0%7DGGOutFoundService]
(MSC service thread 1-1) JBAS010406: Registered connection factory java:jboss/MQConnectionFactory
(MSC service thread 1-1) IJ020016: Missing <recovery> element. XA recovery disabled for: java:jboss/MQConnectionFactory
(MSC service thread 1-3) Apache Camel 1.1.1-p5-redhat-1 (CamelContext: camel-8) is shutting down
(MSC service thread 1-3) Starting to graceful shutdown 12 routes (timeout 30 seconds)
.
.
..
.
(MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."GGInSearch.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."GGInSearch.jar".SwitchYardService: org.switchyard.SwitchYardException: org.apache.camel.FailedToCreateRouteException: Failed to create route V1CamelJmsBindingModel/GGOutFoundService@jmsoutfound#1970355523: Route[[From[jms:queue:GG.CLAWS.SEARCH.OUT?connectionFactory=... because of Failed to resolve endpoint: jms://queue:GG.CLAWS.SEARCH.OUT?connectionFactory=%23jboss%2FMQConnectionFactory due to: No bean could be found in the registry for: jboss/MQConnectionFactory of type: javax.jms.ConnectionFactory -
10. Re: Service failing to restart with error No bean found in registry for mq connection factory
tcunning Nov 10, 2016 2:50 PM (in response to ravi21588)Hi Ravi,
My suggestion would be to :
1) file a JIRA against SWITCHYARD with details (if you haven't already done so)
2) Declare a manifest dependency on javax.jms or some of the other IBM MQ libraries, or the resource adapter itself (see https://developer.jboss.org/thread/231602 ). That way your deployable will wait for the resource adapter to start.
3) If you cannot get #2 to work, don't autostart your camel route, or maybe your SwitchYard bindings before the resource adapter comes up. You might need to create a dummy barrier deployable that waits a bit and then starts the camel route or SY bindings.
-
11. Re: Service failing to restart with error No bean found in registry for mq connection factory
ravi21588 May 23, 2017 8:36 AM (in response to tcunning)Dear Tom,
Can you please guide me throught the steps on how to create a dummy barrier deployable that waits a bit and then starts the camel route or SY bindings .
Thanks in advance