Gave up waiting for service' exception when running junit test in JBoss Fuse

Solution Verified - Updated -


  • When we run a junit test for our route that we created using the File/New/Camel Test Case wizard in JBoss Dev Studio, we get a Gave up waiting for service exception after a minute or so. We shouldn't be getting this exception, we think it should be executing the junit test. The exception is as follows:
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 30.95 sec <<< FAILURE! - in com.sample.BlueprintXmlTest
testCamelRoute(com.sample.BlueprintXmlTest)  Time elapsed: 30.845 sec  <<< ERROR!
java.lang.RuntimeException: Gave up waiting for service (objectClass=org.apache.camel.CamelContext)
    at org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(
    at org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(
    at org.apache.camel.test.blueprint.CamelBlueprintTestSupport.createCamelContext(
  • We are running jboss fuse on the developer studio and am getting errors:
[test.blueprint.Main.main()] NamespaceHandlerRegisterer     INFO  Registered blueprint namespace handler for
Unable to start bundle: 49org.osgi.framework.BundleException: Unable to start bundle


         Blueprint Extender: 3] BlueprintContainerImpl         ERROR Unable to start blueprint container for bundle camel-learn
org.osgi.service.blueprint.container.ComponentDefinitionException: java.lang.IncompatibleClassChangeError: class org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator has interface org.objectweb.asm.ClassVisitor as super class
    at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(
    at org.apache.aries.blueprint.di.AbstractRecipe$


  • Red Hat JBoss Fuse
    • 6.1.0
  • Apache Aries Blueprint
  • Maven
  • JUnit

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content