1 Reply Latest reply on Sep 4, 2012 7:42 AM by Keith Babo

    Switchyard dependency lib error on as7 deploy

    mirko ferioli Newbie

      Hi everyone,

      I've a problem with a missing lib (jar) when I try to execute a function on an external lib import in a switchyard bean.

      I've created a job with talend (etl program)  and exported as jar package. I've deployed it on internal maven repository.

      Now I use this lib in a normal java program (add this lib as dependency in pom file) and it works.

       

      Now we want to use this lib in a normal switchyard bean.

      We add this lib in pom and import on the bean, but when we deploy on as7 to debug/execute we get this error

       

       

      10:16:40,431 ERROR [org.switchyard.internal.DefaultHandlerChain] (http-localhost-127.0.0.1-8080-2)

      org.switchyard.component.bean.BeanComponentException was thrown by handler(provider): Invocation of operation 'Genera_File' on bean component 'it.gestielle.switchyard.GestFOX.GestFoxServiceBean' failed with exception. See attached cause. --- Caused by

      java.lang.reflect.InvocationTargetException  null --- Caused by java.lang.NoClassDefFoundError: registro_ordini/gestfox_1_0/GestFOX --- Caused by java.lang.ClassNotFoundException  registro_ordini.gestfox_1_0.GestFOX from [Module "deployment.GestFOX.jar:main" from Service Module Loader]

       

      Can anybody  help me?

      Thank