Re: Tutorial 1 fails running with exception

2012-09-28 Thread Babak Vahdat
As the comment inside the file already says that: https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-reportincident/src/main/resources/META-INF/spring/camel-context.xml It is just for demonstration purpose to show how you could invoke the *same* routing in XML-DSL instead of Repo

Re: Tutorial 1 fails running with exception

2012-09-27 Thread domenico
Hi Babak Just wanted to give feedback. I tried it on a different machine with a JDK 1.6 build 35 and I got the same 3 or 4 exceptions. The resolution was to copy all the jars from the folder one folder up to That made the classes visible by the Classloader. My understanding of Maven and Sp

Re: Tutorial 1 fails running with exception

2012-09-20 Thread domenico
Hi Babak Actually, the tutorial is where I originally started from. I went through each step and when I hit the above mentioned problem, I tried to run the canned example from Camel 2.9.2 with the same result. BTW, the instructions in the Camel Manual (starting page 131 in the pdf version) do not

Re: Tutorial 1 fails running with exception

2012-09-20 Thread Babak Vahdat
Thanks for the hint, I already updated the Wiki: http://camel.465427.n5.nabble.com/CONF-Apache-Camel-gt-Tutorial-Example-ReportIncident-Part1-td5719683.html And of course you're welcome to dive in and help if you like: http://camel.apache.org/contributing.html Babak domenico wrote > Hi Babak

Re: Tutorial 1 fails running with exception

2012-09-20 Thread Babak Vahdat
Hi No, it's not neccessarily at all to add a "jetty-version" property into the POM of this example as there's already one defined being inherited from the parent POM, e.g. for the 2.9.3 release it's "7.5.4.v20111024": https://svn.apache.org/repos/asf/camel/tags/camel-2.9.3/parent/pom.xml Again

Re: Tutorial 1 fails running with exception

2012-09-17 Thread Babak Vahdat
Just couple of questions: Did you make any modifications of your own inside the example before launching it with "mvn jetty:run"? Did you really make use of the 2.9.3 distribution? And which Maven, JDK and OS did you try it with? Babak domenico wrote > > Hi Babak > > Many thanks for the hint.

Re: Tutorial 1 fails running with exception

2012-09-17 Thread Babak Vahdat
Hi As already said make use of the *latest* release of the 2.9.x branch which's 2.9.3: http://camel.apache.org/camel-293-release.html Then the example should work out of the box. The problem was only on the 2.10.x branch as well as trunk which is already resolved now. And about the "classpath:M

Re: Tutorial 1 fails running with exception

2012-09-17 Thread domenico
Hi Babak Many thanks for the hint. But again, no success. I still get the same exception on mvn jetty:run java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.apache.cxf.transport.servlet.CXFServlet javax.servlet.Unavailable

Re: Tutorial 1 fails running with exception

2012-09-13 Thread Babak Vahdat
Actually if you would download and try the 2.9.3 release that example should work out of the box for you without any modification! The problem only exists on the 2.10.1 release and the trunk (the future 2.11.0 release). See my comment inside the ticket which is already resolved: https://issues.apa

Re: Tutorial 1 fails running with exception

2012-09-13 Thread Babak Vahdat
The *latest* patch release of the 2.9.x branch is 2.9.3 which you should make use of (instead of 2.9.2). I verified that and it works, see: http://camel.apache.org/download.html Babak -- View this message in context: http://camel.465427.n5.nabble.com/Tutorial-1-fails-running-with-exception-t

Re: Tutorial 1 fails running with exception

2012-09-13 Thread domenico
Thanks to all who responded. I have added the dependency to the pom.xml, but no luck. I've got the exact same exceptions. I have added my pom here: http://camel.465427.n5.nabble.com/file/n5719303/pom.xml pom.xml . I did a mvn clean compile before running jetty. I have also tried adding a 3.0.7

Re: Tutorial 1 fails running with exception

2012-09-13 Thread Babak Vahdat
I raised a ticket for this: https://issues.apache.org/jira/browse/CAMEL-5609 Babak -- View this message in context: http://camel.465427.n5.nabble.com/Tutorial-1-fails-running-with-exception-tp5719278p5719294.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Tutorial 1 fails running with exception

2012-09-13 Thread Babak Vahdat
Hi Claus, I'll take care of it (that's *all* the examples using CXF)... Babak Claus Ibsen-2 wrote > > On Thu, Sep 13, 2012 at 3:19 PM, Babak Vahdat > wrote: >> I verified the example using the trunk code. If you would add the >> following >> dependency then the example works ag

Re: Tutorial 1 fails running with exception

2012-09-13 Thread Claus Ibsen
On Thu, Sep 13, 2012 at 3:19 PM, Babak Vahdat wrote: > I verified the example using the trunk code. If you would add the following > dependency then the example works again: > > > org.springframework > spring-web > > > And make sure to do: > > mvn compile > > Before you launch Jett

Re: Tutorial 1 fails running with exception

2012-09-13 Thread Babak Vahdat
I verified the example using the trunk code. If you would add the following dependency then the example works again: org.springframework spring-web And make sure to do: mvn compile Before you launch Jetty: mvn jetty:run Babak -- View this message in context: http://cam

Re: Tutorial 1 fails running with exception

2012-09-13 Thread Babak Vahdat
Hi Yes that example is broken as CXF doesn't depend on spring-web anymore. There was a similar issue by the example"camel-example-cxf" of the distribution which is already fixed: https://issues.apache.org/jira/browse/CAMEL-5473 We should actually double-check all the distribution examples which

Re: Tutorial 1 fails running with exception

2012-09-13 Thread Claus Ibsen
Hi Looks like a classpath issue. Make sure you have the same version of Spring of all the spring JARs. And also you need a spring-web JAR (I think thats its name). Well anyway the Spring JAR that has the class reported missing in the stacktrace. On Thu, Sep 13, 2012 at 2:28 PM, domenico wrote: