1 Reply Latest reply on Apr 10, 2013 6:35 AM by Keith Babo

    Quickstart example "camel-jms-binding" fails to run when deployed via jBoss Dev studio.

    Put Time Newbie

      I have imported the "camel-jms-binding" quickstart example into JBoss Dev Studio.

       

      It builds without errors. But when I deploy it, it gives me the following error: (line with error is in bold)

       

      What is this error? and how do I fix this error?

       

       

       

      11:41:39,222 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "switchyard-quickstart-camel-jms-binding.jar"

      11:41:39,254 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment switchyard-quickstart-camel-jms-binding.jar

      11:41:39,270 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016005: Starting Services for CDI deployment: switchyard-quickstart-camel-jms-binding.jar

      11:41:39,270 INFO  [org.switchyard] (MSC service thread 1-8) Deploying SwitchYard application 'switchyard-quickstart-camel-jms-binding.jar'

      11:41:39,270 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016008: Starting weld service for deployment switchyard-quickstart-camel-jms-binding.jar

      11:41:39,332 INFO  [org.switchyard] (MSC service thread 1-8) Starting SwitchYard service

      11:41:39,332 INFO  [org.apache.camel.management.ManagementStrategyFactory] (MSC service thread 1-8) JMX enabled.

      11:41:39,332 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-8) Apache Camel 0.8.0.Final (CamelContext: camel-12) is starting

      11:41:39,332 INFO  [org.apache.camel.management.DefaultManagementLifecycleStrategy] (MSC service thread 1-8) StatisticsLevel at All so enabling load performance statistics

      11:41:39,348 INFO  [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-8) Loaded 179 type converters

      11:41:39,363 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-8) Total 0 routes, of which 0 is started.

      11:41:39,363 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-8) Apache Camel 0.8.0.Final (CamelContext: camel-12) started in 0.031 seconds

      11:41:39,593 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-8) Route: direct:{urn:switchyard-quickstart:camel-jms-binding:0.1.0}GreetingService started and consuming from: Endpoint[direct://%7Burn:switchyard-quickstart:camel-jms-binding:0.1.0%7DGreetingService]

      11:41:39,598 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-8) Apache Camel 0.8.0.Final (CamelContext: camel-12) is shutting down

      11:41:39,599 INFO  [org.apache.camel.impl.DefaultShutdownStrategy] (MSC service thread 1-8) Starting to graceful shutdown 1 routes (timeout 300 seconds)

      11:41:39,600 INFO  [org.apache.camel.impl.DefaultShutdownStrategy] (Camel (camel-12) thread #21 - ShutdownTask) Route: direct:{urn:switchyard-quickstart:camel-jms-binding:0.1.0}GreetingService shutdown complete, was consuming from: Endpoint[direct://%7Burn:switchyard-quickstart:camel-jms-binding:0.1.0%7DGreetingService]

      11:41:39,601 INFO  [org.apache.camel.impl.DefaultShutdownStrategy] (MSC service thread 1-8) Graceful shutdown of 1 routes completed in 0 seconds

      11:41:39,604 INFO  [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-8) TypeConverterRegistry utilization[attempts=1, hits=1, misses=0, failures=0] mappings[total=179, misses=0]

      11:41:39,605 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-8) Apache Camel 0.8.0.Final (CamelContext: camel-12) is shutdown in 0.007 seconds. Uptime 0.273 seconds.

      11:41:39,606 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.deployment.unit."switchyard-quickstart-camel-jms-binding.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."switchyard-quickstart-camel-jms-binding.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: org.apache.camel.FailedToCreateRouteException: Failed to create route V1CamelJmsBindingModel/GreetingService@-677931704: Route[[From[jms:queue:GreetingServiceQueue?connectionFactory... because of Failed to resolve endpoint: jms://queue:GreetingServiceQueue?connectionFactory=%23ConnectionFactory due to: No bean could be found in the registry for: ConnectionFactory of type: javax.jms.ConnectionFactory

          at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:85)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_17]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_17]

          at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_17]

      Caused by: org.switchyard.exception.SwitchYardException: org.apache.camel.FailedToCreateRouteException: Failed to create route V1CamelJmsBindingModel/GreetingService@-677931704: Route[[From[jms:queue:GreetingServiceQueue?connectionFactory... because of Failed to resolve endpoint: jms://queue:GreetingServiceQueue?connectionFactory=%23ConnectionFactory due to: No bean could be found in the registry for: ConnectionFactory of type: javax.jms.ConnectionFactory

          at org.switchyard.component.camel.common.handler.InboundHandler.<init>(InboundHandler.java:77)

          at org.switchyard.component.camel.common.deploy.BaseBindingActivator.createInboundHandler(BaseBindingActivator.java:71)

          at org.switchyard.component.camel.common.deploy.BaseBindingActivator.activateBinding(BaseBindingActivator.java:63)

          at org.switchyard.deploy.internal.Deployment.deployServiceBindings(Deployment.java:515)

          at org.switchyard.deploy.internal.Deployment.start(Deployment.java:141)

          at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:106)

          at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:78)

          ... 5 more

      Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route V1CamelJmsBindingModel/GreetingService@-677931704: Route[[From[jms:queue:GreetingServiceQueue?connectionFactory... because of Failed to resolve endpoint: jms://queue:GreetingServiceQueue?connectionFactory=%23ConnectionFactory due to: No bean could be found in the registry for: ConnectionFactory of type: javax.jms.ConnectionFactory

          at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:176)

          at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:712)

          at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1749)

          at org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:656)

          at org.apache.camel.impl.DefaultCamelContext.addRouteDefinition(DefaultCamelContext.java:661)

          at org.switchyard.component.camel.common.handler.InboundHandler.<init>(InboundHandler.java:75)

          ... 11 more

      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: jms://queue:GreetingServiceQueue?connectionFactory=%23ConnectionFactory due to: No bean could be found in the registry for: ConnectionFactory of type: javax.jms.ConnectionFactory

          at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:469)

          at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)

          at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:186)

          at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:107)

          at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113)

          at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)

          at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:89)

          at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:851)

          at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:171)

          ... 16 more

      Caused by: org.apache.camel.NoSuchBeanException: No bean could be found in the registry for: ConnectionFactory of type: javax.jms.ConnectionFactory

          at org.apache.camel.util.CamelContextHelper.mandatoryLookup(CamelContextHelper.java:130)

          at org.apache.camel.util.EndpointHelper.resolveReferenceParameter(EndpointHelper.java:326)

          at org.apache.camel.util.EndpointHelper.resolveReferenceParameter(EndpointHelper.java:308)

          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:475)

          at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:91)

          at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:451)

          ... 24 more

       

      11:41:39,621 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "switchyard-quickstart-camel-jms-binding.jar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"switchyard-quickstart-camel-jms-binding.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"switchyard-quickstart-camel-jms-binding.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: org.apache.camel.FailedToCreateRouteException: Failed to create route V1CamelJmsBindingModel/GreetingService@-677931704: Route[[From[jms:queue:GreetingServiceQueue?connectionFactory... because of Failed to resolve endpoint: jms://queue:GreetingServiceQueue?connectionFactory=%23ConnectionFactory due to: No bean could be found in the registry for: ConnectionFactory of type: javax.jms.ConnectionFactory"}}

      11:41:39,622 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016009: Stopping weld service for deployment switchyard-quickstart-camel-jms-binding.jar

      11:41:39,628 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment switchyard-quickstart-camel-jms-binding.jar in 7ms

      11:41:39,629 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."switchyard-quickstart-camel-jms-binding.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."switchyard-quickstart-camel-jms-binding.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: org.apache.camel.FailedToCreateRouteException: Failed to create route V1CamelJmsBindingModel/GreetingService@-677931704: Route[[From[jms:queue:GreetingServiceQueue?connectionFactory... because of Failed to resolve endpoint: jms://queue:GreetingServiceQueue?connectionFactory=%23ConnectionFactory due to: No bean could be found in the registry for: ConnectionFactory of type: javax.jms.ConnectionFactory

       

      11:41:39,631 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"switchyard-quickstart-camel-jms-binding.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"switchyard-quickstart-camel-jms-binding.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: org.apache.camel.FailedToCreateRouteException: Failed to create route V1CamelJmsBindingModel/GreetingService@-677931704: Route[[From[jms:queue:GreetingServiceQueue?connectionFactory... because of Failed to resolve endpoint: jms://queue:GreetingServiceQueue?connectionFactory=%23ConnectionFactory due to: No bean could be found in the registry for: ConnectionFactory of type: javax.jms.ConnectionFactory"}}}}