You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Babak Vahdat <ba...@swissonline.ch> on 2013/01/30 22:16:36 UTC

Re: Error running routes in Scala DSL with Scala v 2.10.0

Hi

The Scala 2.10 support will start by the upcoming 2.11 Release, see here for
the details:

http://camel.apache.org/scala-dsl.html

Babak 


glsilverman wrote
> I created a maven project using the camel-scala-archetype archetype.
> Running mvn exec:java works fine out-of-the box, but when I change the
> Scala version to 2.10.0 in the pom.xml file, I get the following error:
> 
> Caused by: java.lang.NoClassDefFoundError: scala/reflect/ClassManifest
> 	at com.dsi.mytest.MyRouteMain$.main(MyRouteMain.scala:31)
> 	at com.dsi.mytest.MyRouteMain.main(MyRouteMain.scala)
> 	... 6 more
> Caused by: java.lang.ClassNotFoundException: scala.reflect.ClassManifest
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> 	... 8 more
> 
> The documentation for scala.reflec.ClassManifest says it is deprecated,
> since v 2.10.0. So I guess
> org.apache.camel.scala.dsl.builder.RouteBuilderSupport is incompatible
> with Scala v 2.10.0. That means you can't write Camel routes using the
> Scala Camel DSL if you want to include the most recent Scala release. 
> 
> Note: I posted this error on the scala-users groups, at
> https://groups.google.com/forum/?fromgroups=#!topic/scala-user/o81XWrq-E5o





--
View this message in context: http://camel.465427.n5.nabble.com/Error-running-routes-in-Scala-DSL-with-Scala-v-2-10-0-tp5726587p5726589.html
Sent from the Camel - Users mailing list archive at Nabble.com.