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) properties camel-version2.6.0/camel-version log4j-version1.2.16/log4j-version jaxb-api-version2.1/jaxb-api-version

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... dependency groupIdorg.apache.camel/groupId artifactIdcamel-spring/artifactId version${camel-version}/version /dependency Can you try this

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 m_ess...@hotmail.com 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:

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: dependency groupIdorg.apache.camel/groupId artifactIdcamel-spring/artifactId version${camel-version}/version /dependency as well. [1]

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: dependency groupIdorg.apache.camel/groupId artifactIdcamel-spring/artifactId version${camel-version}/version /dependency When I run mvn mvn -e camel:run I am now getting the following

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

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: dependency groupIdorg.apache.camel/groupId artifactIdcamel-jdbc/artifactId version${camel-version}/version /dependency dependency groupIdorg.springframework/groupId

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

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. dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.9/version

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