Re: org.apache.camel.spring.Main class not found exception

2011-11-28 Thread Taariq Levack
You've now mixed spring versions, you have 2.5 for spring-jdbc, for the rest you get 3.0.5 instead. Instead of this dependency... org.apache.camel camel-spring ${camel-version} Can you try this instead? I'm excluding spring dependencies and providing it, you can check th

Re: org.apache.camel.spring.Main class not found exception

2011-11-28 Thread newbiee
Willem: Thanks for the reply. Here are all the dependencies defined in the pom file: (I have explicitly assigned the version) 2.6.0 1.2.16 2.1 2.1.13 org.apache.camel camel-core ${camel-version} org.apache.ca

Re: org.apache.camel.spring.Main class not found exception

2011-11-27 Thread Willem Jiang
Can you use "mvn depdency:tree" to check if there is any other version of spring jars ? If So , you need to specify the right version of spring dependency in your pom. On Mon Nov 28 09:23:27 2011, newbiee wrote: Babak: Thank you for the reply. I have added the mysql jdbc-driver (found from

Re: org.apache.camel.spring.Main class not found exception

2011-11-27 Thread newbiee
Babak: Thank you for the reply. I have added the mysql jdbc-driver (found from the site given below [1]) dependency in the pom i.e. mysql mysql-connector-java 5.1.9 [1] http://www.mkyong.com/spring/maven-spring-hibernate-annot

Re: org.apache.camel.spring.Main class not found exception

2011-11-27 Thread bvahdat
The rule you should think of is pretty simple: for a successfull execution of your camel route provide all the required classes on the classpath, that's it! However now it seems that this time it's mysql jdbc-driver (com.mysql.jdbc.Driver) which's missing on the classpath. so maybe you want to add

Re: org.apache.camel.spring.Main class not found exception

2011-11-27 Thread newbiee
Babak: Thanks for the correction. Here is what I now have in the pom: org.apache.camel camel-jdbc ${camel-version} org.springframework spring-jdbc 2.5 org.apache.camel camel-spring

Re: org.apache.camel.spring.Main class not found exception

2011-11-27 Thread bvahdat
This time your problem is that you declared the spring-jdbc dependency to be only of the scope *test* (the class 'org.springframework.jdbc.datasource.DriverManagerDataSource' is inside that jar). So remove that restriction to have the dependency at the default scope, that's compile. Maybe try also

Re: org.apache.camel.spring.Main class not found exception

2011-11-27 Thread newbiee
Babak: Thanks for the reply. (camel version is 2.6) I addded the following in the pom.xml: org.apache.camel camel-spring ${camel-version} When I run mvn "mvn -e camel:run" I am now getting the following error: Error occurred while running main from: org.apache.camel.spring.

Re: org.apache.camel.spring.Main class not found exception

2011-11-27 Thread bvahdat
So that the missing class [1] on the classpath should now be also retrievable if you would just add: org.apache.camel camel-spring ${camel-version} as well. [1] https://svn.apache.org/repos/asf/camel/trunk/components/camel-spring/src/main/java/org/apache/camel/spring/Main.java Babak --

Re: org.apache.camel.spring.Main class not found exception

2011-11-27 Thread newbiee
Jon: Thanks for the replty. I have following in the pom: (I'm using JDBC) org.apache.camel camel-jdbc ${camel-version} org.springframework spring-jdbc 2.5 test And I have following in the camel-context.xml

Re: org.apache.camel.spring.Main class not found exception

2011-11-27 Thread Jon Anstey
Do you have a Maven dependency for camel-spring in your pom? On Sun, Nov 27, 2011 at 12:20 AM, newbiee wrote: > Hi > > I am trying to use database (MySQL) in CAMEL (v. 2.6). I have defined my > SQL > using Spring DSL. When I run > "mvn -e camel:run" I get the following error: > > Error occurred

org.apache.camel.spring.Main class not found exception

2011-11-26 Thread newbiee
Hi I am trying to use database (MySQL) in CAMEL (v. 2.6). I have defined my SQL using Spring DSL. When I run "mvn -e camel:run" I get the following error: Error occurred while running main from: org.apache.camel.spring.Main java.lang.ClassNotFoundException: org.apache.camel.spring.Main at