[ 
https://issues.apache.org/jira/browse/CAMEL-9321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-9321.
--------------------------------
       Resolution: Fixed
         Assignee: Claus Ibsen
    Fix Version/s: 2.17.0
                   2.16.1

Thanks for the PR

> Blueprint example and archetype does not work when executed with camel:run
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-9321
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9321
>             Project: Camel
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 2.16.0
>            Reporter: Antonin Stefanutti
>            Assignee: Claus Ibsen
>             Fix For: 2.16.1, 2.17.0
>
>
> When running {{mvn camel:run}} in the {{camel-example-sql-blueprint}} module 
> or in a generate project with the {{camel-archetype-blueprint}} Maven 
> archetype, the following error occurs:
> {code}
> [ERROR] *************************************
> [ERROR] Error occurred while running main from: 
> org.apache.camel.test.blueprint.Main
> [ERROR] 
> java.lang.reflect.InvocationTargetException
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:606)
>       at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:455)
>       at java.lang.Thread.run(Thread.java:745)
> 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:265)
>       at 
> org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:226)
>       at org.apache.camel.test.blueprint.Main.doStart(Main.java:107)
>       at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
>       at org.apache.camel.main.MainSupport.run(MainSupport.java:124)
>       at org.apache.camel.main.MainSupport.run(MainSupport.java:353)
>       at org.apache.camel.test.blueprint.Main.main(Main.java:81)
>       ... 6 more
> [ERROR] *************************************
> {code}
> This is due to a missing dependency on {{org.apache.aries.blueprint.core}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to