the wired thing is that i tried with 2.23.0 snapshot version and 2.22.2
snapshot version,same error still
but i tried some combition with 23.0 release and 2.22.2 release , then it
works

<camel.version>2.23.0</camel.version>           
<camel.bug.version>2.22.0</camel.bug.version>

<!-- Camel -->
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-spring-boot-starter</artifactId>
    <version>${camel.bug.version}</version>
</dependency>
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-stream-starter</artifactId>
    <version>${camel.bug.version}</version>
</dependency>
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-cxf</artifactId>
    <version>${camel.bug.version}</version>
</dependency>
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-cxf-transport</artifactId>
    <version>${camel.bug.version}</version>
</dependency>
<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-transports-http-jetty</artifactId>
    <version>3.2.5</version>
</dependency>
<dependency>
    <groupId>javax.xml.ws</groupId>
    <artifactId>jaxws-api</artifactId>
    <version>2.1</version>
</dependency>
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-saxon</artifactId>
    <version>${camel.bug.version}</version>
</dependency>
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-jackson</artifactId>
    <version>${camel.bug.version}</version>
</dependency>
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-jaxb</artifactId>
    <version>${camel.bug.version}</version>
</dependency>

---------- Forwarded message ---------
From: Zoran Regvart-2 [via Camel] <ml+s465427n5824590...@n5.nabble.com>
Date: Thu, Oct 11, 2018 at 1:40 PM
Subject: Re: o.a.c.i.DefaultCamelBeanPostProcessor : No CamelContext
defined yet so cannot inject into bean:
To: nono <wyan...@gmail.com>


Hi,
this was recently fixed with CAMEL-12087[1]

zoran

[1] https://issues.apache.org/jira/browse/CAMEL-12087

On Wed, Oct 10, 2018 at 9:50 AM, Wang Yan <[hidden email]
<http:///user/SendEmail.jtp?type=node&node=5824590&i=0>> wrote:

> Hello All,
>
> I am running Apache Camel as SpringBoot application
>
> Everything is ok. but when i start it, I saw a warning  No CamelContext
> defined yet
>
> but actually in my Route i could get it , and it is also initialized, i
> used log to check and trace it
>
> Then Version
>        <camel.version>2.22.0</camel.version>
>         <springboot.version>2.0.4.RELEASE</springboot.version>
>            JDK i used is 1.8, it is the only different with example of
> camel springboot
>
> * o.a.c.i.DefaultCamelBeanPostProcessor    : No CamelContext defined yet
so
> cannot inject into bean:
> org.apache.camel.converter.jaxb.FallbackTypeConverter*
>
> *Then I add **CamelContext camelContext as below shown, but it does not
> help, still have same warning message*
>
> *Any idea or suggestion? *
>
> *@SpringBootApplication*
> *public class SpringbootCameApplication {*
>
>
> * @Autowired*
> * CamelContext camelContext;*



-- 
Zoran Regvart


------------------------------
If you reply to this email, your message will be added to the discussion
below:
http://camel.465427.n5.nabble.com/o-a-c-i-DefaultCamelBeanPostProcessor-No-CamelContext-defined-yet-so-cannot-inject-into-bean-tp5824553p5824590.html
To unsubscribe from o.a.c.i.DefaultCamelBeanPostProcessor : No CamelContext
defined yet so cannot inject into bean:, click here
<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5824553&code=d3lhbmJveEBnbWFpbC5jb218NTgyNDU1M3wxMTU1MzAzODM=>
.
NAML
<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>

Reply via email to