How to run a Camel Blueprint project with mvn camel:run
Issue
- How do I run a Camel Blueprint project with mvn camel:run?
- I receive the following error when running a Camel Blueprint project with mvn camel:run
Error occurred while running main from: org.apache.camel.test.blueprint.Main
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:440)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.RuntimeException: Gave up waiting for service (objectClass=org.apache.camel.CamelContext)
at org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:203)
at org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:165)
at org.apache.camel.test.blueprint.Main.doStart(Main.java:86)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
at org.apache.camel.main.MainSupport.run(MainSupport.java:141)
at org.apache.camel.main.MainSupport.run(MainSupport.java:332)
at org.apache.camel.test.blueprint.Main.main(Main.java:63)
... 6 more
- I am not able to run camel route in eclipse(I am using camel blueprint). the route is not loaded getting exception while running with "camel:run" goal.
Environment
- Red Hat JBoss Fuse
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.