Hi

Thanks for sharing this.

I bet most Camel committers use Maven and thus the example runs easy
with maven as you dont have to download and setup anything.
Just run the maven goal.

If you have the time and want then feel free to check some of the
other examples if they work with ANT.
Then we can get those fixed as well.



On Mon, Apr 12, 2010 at 6:02 AM, kerryland <[email protected]> wrote:
>
> Hi Folks,
>
> I've found a couple of problems with camel-example-etl, at least with "ant".
>
> Once I've downloaded dependencies and set environment variables the build
> fails with:
>
> C:\apps\apache-camel-2.2.0\examples\camel-example-etl\src\main\java\org\apache\camel\example\etl\CustomerTransformer.java:26:
> package org.springframework.orm.jpa does not exist
>
> This can be fixed by adding the following to the definition of
> "sample.build.classpath" in the build.xml file:
>
>    <path refid="spring.classpath"/>
>
> ... but then we die with:
>
> Exception in thread "main"
> org.springframework.beans.factory.BeanDefinitionStoreException: Could not
> resolve bean definition resource pattern [META-INF/spring/*.xml]; nested
> exception is java.io.FileNotFoundException: class path resource
> [META-INF/spring/
>
> The README.txt for camel-example-etl says:
>
> You can see the routing rules by looking at the java code in the
> src/main/java
> directory and the Spring XML configuration lives in
> src/main/resources/META-INF/spring
>
> ... but there is no "src/main/resources/META-INF/spring" directory, which
> would seem to be exactly the problem I've run into.
>
> Does anybody have the missing files?
>
> Anyway, I hope I've helped to make Apache Camel better :-)
>
> Cheers
> Kerry
>
>
>
>
> --
> View this message in context: 
> http://old.nabble.com/camel-example-etl-and-ant-won%27t-run-tp28213644p28213644.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to