Hi,

Hope someone can help me with the following problem. I'm trying to install a
camel route into servicemix kernel 1.0, which uses an http endpoint.
The routebuilder looks like this:

    public void configure() {
        LOG.info("configuring routes");
        from("file:///tmp/rgw").to("log:rgw")
            .to("http://localhost:9090/RGW/kandidaat/naam/j";).to("log:rgw");
    }
    
When i deploy this as an osgi bundle, i get the following exception:

Starting bundle, sop
        Exception in thread "SpringOsgiExtenderThread-10"
org.apache.camel.NoSuchEndpointException: No endpoint could be found for:
http://localhost:9090/RGW/kandidaat/naam/j
        at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:54)
        at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:100)

I think i have the required bundles installed, part of the 'osgi list'
result:

[  29] [Active     ] [   50] camel-core (1.4.0)
[  30] [Active     ] [   50] camel-spring (1.4.0)
[  31] [Active     ] [   50] spring-tx (2.5.5)
[  55] [Active     ] [   50] camel-http (1.4.0)
[  59] [Active     ] [   50] Apache ServiceMix Bundles:
commons-httpclient-3.1 (3.1.0.1)
[  61] [Active     ] [   50] Apache ServiceMix Bundles: commons-io-1.3.2
(1.3.2.1)
[  62] [Active     ] [   50] camel-bundle-1 (1.0.0)

Bundle 62 is the bundle containing my camel code. The endpoint is a rest
service implemented using grails, which returns some json code. This works
as expected.

In my bundle manifest the following packages are imported:
Import-Package: org.osgi.framework, org.apache.commons.logging,
org.apache.camel.builder, org.apache.camel.model

What am i doing wrong here?

Thanks,
Andrej
-- 
View this message in context: 
http://www.nabble.com/org.apache.camel.NoSuchEndpointException-tp20054345p20054345.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to