Did you forgot the last 'r' in the DefaultMarshaler ? Cheers, Guillaume Nodet
On 4/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I tried using the org.servicemix.jbi.messaging.DefaultMarshaler class, but > it gives the following error, even as the servicemix starts. > > Loading ServiceMix from file: servicemix.xml > [INFO] XBeanXmlBeanDefinitionReader - Loading XML bean definitions from > file [C > \servicemix-2.0.2\examples\file-binding\servicemix.xml] > Caught: org.springframework.beans.factory.BeanDefinitionStoreException: > Error r > gistering bean with name '' defined in file > [C:\servicemix-2.0.2\examples\file- > inding\servicemix.xml]: Bean class [ > org.servicemix.jbi.messaging.DefaultMarsha > er] not found; nested exception is java.lang.ClassNotFoundException: > org.servi > emix.jbi.messaging.DefaultMarshaler > org.springframework.beans.factory.BeanDefinitionStoreException: Error > registeri > g bean with name '' defined in file > [C:\servicemix-2.0.2\examples\file-binding\ > ervicemix.xml]: Bean class [ > org.servicemix.jbi.messaging.DefaultMarshaler] not > found; nested exception is java.lang.ClassNotFoundException: > org.servicemix.jb > .messaging.DefaultMarshaler > java.lang.ClassNotFoundException: > org.servicemix.jbi.messaging.DefaultMarshale > > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:242) > at org.springframework.util.ClassUtils.forName(ClassUtils.java:88) > at > org.springframework.beans.factory.support.BeanDefinitionReaderUtils. > reateBeanDefinition(BeanDefinitionReaderUtils.java:65) > at > org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser > parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:369) > at > org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser > parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:335) > > > ** I looked for that class under org.servicemix.jbi.messaging package, but > the class is not found. > > Please some more tips. > > thx, > Mat > > > > > > > > > "Guillaume Nodet" <[EMAIL PROTECTED]> > 04/19/2006 02:14 PM > Please respond to > [email protected] > > > To > [email protected] > cc > > Subject > Re: Help in reading text files using the file-Binding example > > > > > > > Sorry, i mean > org.servicemix.jbi.messaging.DefaultMarshaler > > -- Guillaume > > On 4/19/06, Guillaume Nodet <[EMAIL PROTECTED]> wrote: > > Have you tried org.servicemix.jbi.message.DefaultMarshaler instead ? > > > > Cheers, > > Guillaume Nodet > > > > On 4/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I need to read a text file with large content and move it to an > different > > > directory, Iam new to servicemix and need some tips / help as to which > > > class to use. The current example uses an xml file. > > > > > > When I tried using the DefaultMarshaler class with text content file, > It > > > throws java.lang.ClassNotFoundException: > > > org.servicemix.client.DefaultMarshaler error. > > > > > > > > > Thanks > > > Mat > > > <sm:activationSpec componentName="fileSender" > > > service="foo:fileSender"> > > > <sm:component> > > > <bean > > > xmlns="http://xbean.org/schemas/spring/1.0" > > > class="org.servicemix.components.file.FileWriter"> > > > <property > name="directory" > > > value="outbox" /> > > > <property > > > name="marshaler"> > > > <bean > > > class=" > > > org.servicemix.client.DefaultMarshaler"> > > > <property > > > name="fileName"> > > > <bean > > > class="org.servicemix.expression.JaxenStringXPathExpression"> > > > <constructor-arg > > > value="concat('sample_', /sample/@id, '.xml')" /> > > > </bean> > > > </property> > > > </bean> > > > </property> > > > </bean> > > > </sm:component> > > > </sm:activationSpec> > > > > > > > > >
