You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2014/04/23 10:33:18 UTC

[jira] [Resolved] (CAMEL-7387) MainSupport - Should not barf if no CamelContext found

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

Claus Ibsen resolved CAMEL-7387.
--------------------------------

    Resolution: Fixed

> MainSupport - Should not barf if no CamelContext found
> ------------------------------------------------------
>
>                 Key: CAMEL-7387
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7387
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, camel-spring
>    Affects Versions: 2.13.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.13.1, 2.14.0
>
>
> For example if you have multiple spring xml files, and one of them do not contain a <camelContext> then we may have MainSupport in camel-core barf. We should make that optional.
> {code}
> Exception in thread "main" org.apache.camel.CamelException: Cannot find any Camel Context from the Application Context. Please check your Application Context setting
> 	at org.apache.camel.main.MainSupport.postProcessContext(MainSupport.java:397)
> 	at org.apache.camel.spring.Main.doStart(Main.java:146)
> 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
> 	at org.apache.camel.main.MainSupport.run(MainSupport.java:148)
> 	at org.apache.camel.main.MainSupport.run(MainSupport.java:352)
> 	at org.apache.camel.spring.Main.main(Main.java:74)
> [                      Thread-4] MainSupport$HangupInterceptor  INFO  Received hang up - stopping the main instance.
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)