Exception while testing blueprint.xml using standalone code.

Solution Unverified - Updated -

Issue

I have created a unit test using the camel-test-blueprint as instructed in link. It's a simple route with two mock end points. When I ran the test case, it fails with exception:

 Blueprint Extender: 3] BlueprintContainerImpl ERROR Unable to start blueprint container for bundle PrototypeTest
java.lang.NoClassDefFoundError: org/apache/camel/TypeConverterExists
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
    at java.lang.Class.getDeclaredMethod(Class.java:2007)
        . . .
Caused by: java.lang.ClassNotFoundException: org.apache.camel.TypeConverterExists
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

Environment

  • Red Hat JBoss Fuse
    • 6.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.