camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmoulliard <cmoulli...@gmail.com>
Subject Re: class org.apache.camel.model.dataformat.csv.CsvDataFormat is not on the classpath !
Date Mon, 17 Mar 2008 08:24:00 GMT

You are right. I tought that CSV class was in camel-core. By adding the
camel-csv-1.3-SNAPSHOT.jar to the classpath, everything is working
perfectly.

Many thanks for your help,

Charles


davsclaus wrote:
> 
> Hi
> 
> Are you sure that you have this jar on your claspath:
> camel-csv-1.3-SNAPSHOT.jar
> This jar contains the missing class that is reported not found.
> 
> /Claus
> 
> 
> 
> cmoulliard wrote:
>> 
>> Hi,
>> 
>> I try to unmarshal a csv file using the following DSL :
>> 
>>         from("file:///c:/temp/test?noop=true")
>>         .unmarshal().csv()
>>         .to("test-jms:queue:test.queue");
>> 
>> Unfortunately, I receive the following error during the execution :
>> 
>> GRAVE: Failed: java.lang.IllegalArgumentException: The class
>> org.apache.camel.dataformat.csv.CsvDataFormat is not on the classpath!
>> Cannot use the dataFormat
>> org.apache.camel.model.dataformat.CsvDataFormat@1f44ec7
>> java.lang.IllegalArgumentException: The class
>> org.apache.camel.dataformat.csv.CsvDataFormat is not on the classpath!
>> Cannot use the dataFormat
>> org.apache.camel.model.dataformat.CsvDataFormat@1f44ec7
>> 	at
>> org.apache.camel.model.dataformat.DataFormatType.createDataFormat(DataFormatType.java:94)
>> 	at
>> org.apache.camel.model.dataformat.DataFormatType.getDataFormat(DataFormatType.java:80)
>> 	at
>> org.apache.camel.model.dataformat.DataFormatType.getDataFormat(DataFormatType.java:58)
>> 	at
>> org.apache.camel.model.UnmarshalType.createProcessor(UnmarshalType.java:99)
>> 	at
>> org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1217)
>> 	at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:92)
>> 	at org.apache.camel.model.RouteType.addRoutes(RouteType.java:177)
>> 	at org.apache.camel.model.RouteType.addRoutes(RouteType.java:71)
>> 	at
>> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:466)
>> 	at
>> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:458)
>> 	at
>> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:143)
>> 	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:51)
>> 	at
>> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:96)
>> 	at
>> org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
>> 	at
>> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
>> 	at
>> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
>> 	at
>> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:260)
>> 	at
>> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:744)
>> 	at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:372)
>> 	at
>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:123)
>> 	at
>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:76)
>> 	at
>> org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:311)
>> 	at org.apache.camel.spring.Main.doStart(Main.java:302)
>> 	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:51)
>> 	at org.apache.camel.spring.Main.run(Main.java:104)
>> 	at org.apache.camel.spring.Main.run(Main.java:95)
>> 	at
>> org.apache.camel.example.spring.MyRouteBuilder.main(MyRouteBuilder.java:41)
>> 
>> The class org.apache.camel.model.dataformat.CsvDataFormat is present in
>> my classpath of eclipse and I use camel-1.3-SNAPSHOT 
>> 
>> Where is the problem ?
>> 
>> Regards,
>> 
>> Charles
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/class-org.apache.camel.model.dataformat.csv.CsvDataFormat-is-not-on-the-classpath-%21-tp16048271s22882p16090086.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message