You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/11/13 15:57:11 UTC

[jira] [Commented] (CAMEL-9321) Blueprint example and archetype does not work when executed with camel:run

    [ https://issues.apache.org/jira/browse/CAMEL-9321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15004073#comment-15004073 ] 

ASF GitHub Bot commented on CAMEL-9321:
---------------------------------------

GitHub user astefanutti opened a pull request:

    https://github.com/apache/camel/pull/680

    CAMEL-9321: Blueprint example and archetype does not work when execut…

    …ed with camel:run

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/astefanutti/camel CAMEL-9321

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/680.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #680
    
----
commit 29072aeca63f1b774096c22cf5973249a1622b12
Author: Antonin Stefanutti <an...@stefanutti.fr>
Date:   2015-11-13T14:53:35Z

    CAMEL-9321: Blueprint example and archetype does not work when executed with camel:run

----


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