You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Mike Oliver <Mi...@open4businessonline.com> on 2021/05/11 06:21:29 UTC

Waiting for dependencies

I have the following camel context.

<camelContext id="_getgradecontext2" xmlns="
http://camel.apache.org/schema/blueprint">
        <route id="_getgrade2">
            <from id="_from1"
uri="restlet:{{server.protocol}}:{{server.host}}:{{server.port}}{{server.path}}?restletMethod=POST">
                <description>Receives Current Grade from Camu</description>
            </from>
            <log id="_coglog1" message="GGLog1 message headers =
${headers}">
                <description>The request raw from bpms</description>
            </log>
            <setHeader headerName="api-key" id="_setHeader1">
                <constant>{{api.key}}</constant>
            </setHeader>
            <to id="_to2"
uri="netty4-http:{{client.protocol}}:{{client.host}}:{{client.port}}{{client.path}}"/>
        </route>
    </camelContext>

it builds fine with mvn clean install

And then deploys with no errors to karaf

However the camel context doesn't show in the Karaf console and in the OSGI
bundles list it shows active but in the logs it shows...

Unable to start container for blueprint bundle CamuGetGrade2/1.0.0.SNAPSHOT
due to unresolved dependencies
[(&(component=netty4-http)(objectClass=org.apache.camel.spi.ComponentResolver))]

I tried features install camel-http and camel-netty4 with no impact.

What can I try next.

I chose netty4 because I found that reslet doesn't allow more than one
bundle to have the same port for the reslet component and I have several
routes that access the same external service.




*Mike Oliver** Founder**, Open 4 Business Online*
Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
US Toll free: 1-800-985-4766 **NEW*
http://www.o4bo.com
Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
[image: Facebook]
<http://www.facebook.com/pages/Open-4-Business-Online/147285608707176> [image:
Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
<http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
<https://angel.co/open-4-business-online/> [image: Blogger]
<http://blog.open4businessonline.com/> [image: eBay]
<http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
<http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
Plus Page] <https://plus.google.com/113688478700619104336/posts>
Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com [image:
Skype] MikeOliverAZ

Re: Waiting for dependencies

Posted by Michael Oliver <mi...@gmail.com>.
Ok thanks will try that

On Tue, May 11, 2021, 3:07 PM Claus Ibsen <cl...@gmail.com> wrote:

> You need to install camel-netty4-http
>
> On Tue, May 11, 2021 at 8:30 AM Mike Oliver
> <Mi...@open4businessonline.com> wrote:
> >
> > I have the following camel context.
> >
> > <camelContext id="_getgradecontext2" xmlns="
> > http://camel.apache.org/schema/blueprint">
> >         <route id="_getgrade2">
> >             <from id="_from1"
> >
> uri="restlet:{{server.protocol}}:{{server.host}}:{{server.port}}{{server.path}}?restletMethod=POST">
> >                 <description>Receives Current Grade from
> Camu</description>
> >             </from>
> >             <log id="_coglog1" message="GGLog1 message headers =
> > ${headers}">
> >                 <description>The request raw from bpms</description>
> >             </log>
> >             <setHeader headerName="api-key" id="_setHeader1">
> >                 <constant>{{api.key}}</constant>
> >             </setHeader>
> >             <to id="_to2"
> >
> uri="netty4-http:{{client.protocol}}:{{client.host}}:{{client.port}}{{client.path}}"/>
> >         </route>
> >     </camelContext>
> >
> > it builds fine with mvn clean install
> >
> > And then deploys with no errors to karaf
> >
> > However the camel context doesn't show in the Karaf console and in the
> OSGI
> > bundles list it shows active but in the logs it shows...
> >
> > Unable to start container for blueprint bundle
> CamuGetGrade2/1.0.0.SNAPSHOT
> > due to unresolved dependencies
> >
> [(&(component=netty4-http)(objectClass=org.apache.camel.spi.ComponentResolver))]
> >
> > I tried features install camel-http and camel-netty4 with no impact.
> >
> > What can I try next.
> >
> > I chose netty4 because I found that reslet doesn't allow more than one
> > bundle to have the same port for the reslet component and I have several
> > routes that access the same external service.
> >
> >
> >
> >
> > *Mike Oliver** Founder**, Open 4 Business Online*
> > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > US Toll free: 1-800-985-4766 **NEW*
> > http://www.o4bo.com
> > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> > [image: Facebook]
> > <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> [image:
> > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> > <https://angel.co/open-4-business-online/> [image: Blogger]
> > <http://blog.open4businessonline.com/> [image: eBay]
> > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com
> [image:
> > Skype] MikeOliverAZ
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

Re: Waiting for dependencies

Posted by Claus Ibsen <cl...@gmail.com>.
You need to install camel-netty4-http

On Tue, May 11, 2021 at 8:30 AM Mike Oliver
<Mi...@open4businessonline.com> wrote:
>
> I have the following camel context.
>
> <camelContext id="_getgradecontext2" xmlns="
> http://camel.apache.org/schema/blueprint">
>         <route id="_getgrade2">
>             <from id="_from1"
> uri="restlet:{{server.protocol}}:{{server.host}}:{{server.port}}{{server.path}}?restletMethod=POST">
>                 <description>Receives Current Grade from Camu</description>
>             </from>
>             <log id="_coglog1" message="GGLog1 message headers =
> ${headers}">
>                 <description>The request raw from bpms</description>
>             </log>
>             <setHeader headerName="api-key" id="_setHeader1">
>                 <constant>{{api.key}}</constant>
>             </setHeader>
>             <to id="_to2"
> uri="netty4-http:{{client.protocol}}:{{client.host}}:{{client.port}}{{client.path}}"/>
>         </route>
>     </camelContext>
>
> it builds fine with mvn clean install
>
> And then deploys with no errors to karaf
>
> However the camel context doesn't show in the Karaf console and in the OSGI
> bundles list it shows active but in the logs it shows...
>
> Unable to start container for blueprint bundle CamuGetGrade2/1.0.0.SNAPSHOT
> due to unresolved dependencies
> [(&(component=netty4-http)(objectClass=org.apache.camel.spi.ComponentResolver))]
>
> I tried features install camel-http and camel-netty4 with no impact.
>
> What can I try next.
>
> I chose netty4 because I found that reslet doesn't allow more than one
> bundle to have the same port for the reslet component and I have several
> routes that access the same external service.
>
>
>
>
> *Mike Oliver** Founder**, Open 4 Business Online*
> Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> US Toll free: 1-800-985-4766 **NEW*
> http://www.o4bo.com
> Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> [image: Facebook]
> <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176> [image:
> Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> <https://angel.co/open-4-business-online/> [image: Blogger]
> <http://blog.open4businessonline.com/> [image: eBay]
> <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> Plus Page] <https://plus.google.com/113688478700619104336/posts>
> Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com [image:
> Skype] MikeOliverAZ



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2