Hi SMX Users,

I have an issue with shared library at which I am completely lost: I created
a shared lib SU and deployed to SMX 4.2, no problem there. Then I created a
bean SU that uses the SL, so I added the SL to its xbean.xml using
<classpath>, and packed it into a SA. It was deployed without any problem.
However, whenever I send a message which triggers the bean SU, it stops at
the line where SL is referred, and complains about the class not defined. If
I removed the class/jar from the SL, the bean SU will not be deployed at all
(with compile errors).

Does anyone have any idea why the compiling and deploy of the bean SU is
successful, but not the runtime?

Here is the error:

22:44:48,007 | ERROR | ix-bean-thread-3 | BeanComponent                    |
icemix.common.AsyncBaseLifeCycle  480 | Error processing exchange
org.apache.servicemix.jbi.runtime.impl.inonlyi...@22d1f4
java.lang.NoClassDefFoundError: com/example/service/DocumentService
        at bmf.snm.beans.su.MyBean.onMessageExchange(MyBean.java:37)
        at
org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:230)
        at 
org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:217)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:478)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:347)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException:
com.example.service.DocumentService in classloader
org.apache.xbean.spring.context.filesystemxmlapplicationcont...@e543fa
        at
org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:206)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 10 more
-- 
View this message in context: 
http://servicemix.396122.n5.nabble.com/Shared-Library-Problems-tp3296911p3296911.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to