Launch Talend Job With a Service

Hello,

I’m trying to integrate a Talend Job in my app. The Talend Job is generated in a directory with all .jar components with Talend Open Studio.
I have change the Gradle file to add all .jar needed in my core module.

configure(coreModule) {
    configurations {
        jdbc
        dbscripts
    }

dependencies {
    compile(globalModule)
    compileOnly(servletApi)
    jdbc(postgres)
    testRuntime(postgres)
    compile fileTree(include: ['*.jar'], dir: 'Talend') // <== Here
}

With this configuration I can acces my Job Talend Class and run the job in the service Class code.
But When I start my server I have this error

java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlReaderContext.getEnvironment()Lorg/springframework/core/env/Environment;

I guess is a dependencies issue.

Thank you.

Hi,
Your dependency declaration in the build.gradle looks sensible.

The error message means incompatible Spring Framework version between libraries located in the server and application’s code, or Talend code.
Does Talend code reference Spring framework, or embed Spring libraries inside?