camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: How to add a GenericFileProcessStrategy implementation to a ServiceMix SU ?
Date Thu, 18 Aug 2011 15:33:37 GMT
On Thu, Aug 18, 2011 at 4:31 PM, Sorin Silaghi <sorin7486@gmail.com> wrote:
> Any ideas on this one ? I'd expect it to be a fairly simple use case. Or
> should I ask on the ServiceMix mailing list this question ?
>

Yeah its JBI related so your best shot is the SMX @user list.


> On Wed, Aug 17, 2011 at 6:44 PM, Sorin Silaghi <sorin7486@gmail.com> wrote:
>
>> Hello,
>>
>>
>>              I am trying to add a GenericFileProcessStrategy implementation
>> to my camel route in servicemix but I can't solve a dependency problem. I
>> keep getting a ClassNotFoundException for GenericFileProcessStrategy. I
>> tried to add camel-core as a dependency to my SU but that doesn't seem to
>> help. Anybody know what would be the proper way to do this?
>>
>>
>> Below is my camel-context file:
>>
>>   <bean id="testStrategy" class="org.test.TestStrategy" />
>>
>>   <camelContext xmlns="http://camel.apache.org/schema/spring"
>> id="camelContext">
>>
>>     <route id="ORDERS">
>>       <from
>> uri="file://data/edigrid/endpoints/DPD-in?processStrategy=#testStrategy"/>
>>       <to uri="file://data/edigrid/endpoints/DPD-out"/>
>>     </route>
>>   </camelContext>
>>
>>
>>              And here is the exception I get:
>>
>> Caused by: java.lang.NoClassDefFoundError:
>> org/apache/camel/component/file/GenericFileProcessStrategy
>>     at java.lang.ClassLoader.defineClass1(Native Method)
>>     at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
>>     at
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>>     at
>> org.apache.xbean.classloader.JarFileClassLoader.access$200(JarFileClassLoader.java:48)
>>     at
>> org.apache.xbean.classloader.JarFileClassLoader$6.run(JarFileClassLoader.java:272)
>>     at java.security.AccessController.doPrivileged(Native Method)
>>     at
>> org.apache.xbean.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:224)
>>     at
>> org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:200)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>>     at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
>>     at
>> org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:63)
>>     at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.createBeanDefinition(BeanDefinitionParserDelegate.java:616)
>>     at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:472)
>>     ... 82 more
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.camel.component.file.GenericFileProcessStrategy in classloader
>> org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1abe751
>>     at
>> org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:206)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>>     ... 95 more
>>
>>
>>
>> Best regards,
>>                        Sorin.
>>
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message