You need make sure the CamelHttpTransportServle is deployed first, than load the camel context.
You can take a look at this example first[1].

[1] https://svn.apache.org/repos/asf/camel/trunk/components/camel-servlet/src/test/resources/org/apache/camel/component/servlet/web-spring.xml
jfaath wrote:
This is exactly like what I was looking for.  However, I tried out the simple
example defined in the link you provided and I keep getting this error:

SEVERE: Exception sending context initialized event to listener instance of
class org.springframework.web.context.ContextLoaderListener
org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException:
Cannot find the deployed servlet, please configure the ServletComponent or
configure a org.apache.camel.component.servlet.CamelHttpTransportServlet
servlet in web.xml
which appears to happen when the route is being read.  Any ideas?



willem.jiang wrote:
Hi,

If you don't want start the jetty engine, you can try to use the camel-servlet[1] component.

[1]http://camel.apache.org/servlet.html


Willem

jfaath wrote:
I've deployed my camel app as a web application in tomcat. Works great. The
main starting point for my route is an http server endpoint using
camel-jetty.  So, it seems weird to me that tomcat starts and then starts
a
jetty instance.  Is there any way to use the actual tomcat instance for
this
endpoint?  Does this make any sense?

Regards,

JF




Reply via email to