Hi,

You need to include the camel-servlet jar which is not a part of camel-http module and the camel-servlet component is a new component for camel 2.0 M3.

I will update the wiki page for it.

Willem

janylj wrote:


janylj wrote:

The camel-context.xml has:

    <!-- create a camel context as to start Camel -->
        <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring";>
                <package>package.has.routebuilderl</package>
        </camelContext>
        <bean id="servlet" 
class="org.apache.camel.component.http.HttpComponent">
                <property name="camelContext" ref="camel" />
        </bean>



I figure that I should not have a HttpComponent for servlet scheme because
HttpComponent is only for output data. Then what component I should set for
servlet. If I delete HttpComponent part, Tomat has error.

SEVERE: Context initialization failed
org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:
servlet:///hello due to: No component found with scheme: servlet
        at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:411)


Reply via email to