Hi You may need to use a 3rd party jboss classloader module.
See more details at http://camel.apache.org/camel-jboss.html On Wed, Mar 11, 2015 at 11:14 AM, Scisci <ferioli.mi...@gmail.com> wrote: > Hi, > I'm trying to use bindy on camel 2.14.1 with a WAR deploy on jboss-eap 6.3.3 > this is my camel context: > > <camelContext xmlns="http://camel.apache.org/schema/spring"> > <propertyPlaceholder id="placeholder" > location="classpath:file.properties"/> > <route id="file-to-jpa"> > <from > uri="file:{{Path_RiskNoDer}}?fileName={{File_Name_RiskNoDer}}&readLock=changed&readLockTimeout=10000&readLockCheckInterval=5000&move={{Backup}}"/> > <split> > <tokenize token="\n" /> > <unmarshal> > <bindy type="Csv" > classType="it.demo.Rischio_Controparti.RiskNoDer_CSV" > /> > </unmarshal> > <log message="unmarshal ${body}"/> > > </split> > </route> > </camelContext> > > > and this is my bean where unmarshal the csv file > > package it.demo.Rischio_Controparti; > > import java.io.Serializable; > import java.util.Date; > > import org.apache.camel.dataformat.bindy.annotation.CsvRecord; > import org.apache.camel.dataformat.bindy.annotation.DataField; > > @CsvRecord(separator="\\;") > public class RiskNoDer_CSV implements Serializable { > > /** > * > */ > private static final long serialVersionUID = -5848486668088244375L; > > @DataField(pos=1 , required=true) > Integer codice_controparte; > > @DataField(pos=2 , required=true) > String nome_controparte; > > @DataField(pos=3 , required=true) > String tipo; > > @DataField(pos=4 , required=true, pattern="yyyyMMdd") > Date data_valuta; > > .... > > this is the error ... > java.lang.IllegalArgumentException: The separator has not been defined in > the annotation @CsvRecord or not instantiated during initModel. > > Can someone help me please ? > Thanks > Mirko > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-bindy-2-14-1-and-jboss-eap-6-3-3-tp5763997.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/