0

I am trying to develop a rest service using apache camel + spring and deploy the war on tomcat.

I dont want to use CXF Servlet.

I tried a few tutorial and can't get it working.

Is this a valid use case? Please provide some inputs as this is the first time i am working on Apache Camel though i have developed services using @ResponseBody earlier.

Thanks.

l a s
  • 3,836
  • 10
  • 42
  • 61
  • What errors are you seeing? We need a little more information on what you have tried and what you are experiencing. – Namphibian Mar 04 '14 at 02:10
  • http://www.consulting-notes.com/2010/12/basic-rest-service-in-apache-cxf-vs.html and got Caused by: java.io.IOException: Cannot find any registered HttpDestinationFactory from the Bus. also mine is a spring web app deployed on tomcat. – l a s Mar 04 '14 at 03:41
  • http://stackoverflow.com/questions/22188478/apache-camel-spring-war-tomcat-rest I have created a new question with code and configs. – l a s Mar 05 '14 at 04:27

1 Answers1

0

From the stack trace, you need to put cxf-rt-http-jetty jar into the war file.

Willem Jiang
  • 3,291
  • 1
  • 14
  • 14