strdn / rundeck-jdbc-executor-plugin

6 stars 9 forks source link

Compatibility with Rundeck 3.4.0 #14

Open eagle-rr opened 3 years ago

eagle-rr commented 3 years ago

Note: When I upgraded to Rundeck 3.4.0, I had to remove the custom groovy-sql jar files for this plugin as I ran into error:

service.log:Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is groovy.lang.GroovyRuntimeException: Conflicting module versions. Module [groovy-sql is loaded in version 2.5.6 and you are trying to load version 3.0.8

miniwark commented 2 years ago

Hi ! This is probably due to the fact than Rundeck seems to already come with some of the Grovvy required libraries for SQL inside the rundeck.war file. Most notability it's the case for groovy-sql-<version>.jar.

Therefore you only need to add the corresponding groovy-jsr223-<version>.jar (and a jdbc driver) in the additional /lib folder created at the same level of the /libext folder.

According to your error message you probably need to:

This as work for me with Rundeck 3.3.10

PS: for more recent version of Rundeck it's probably necessary to upgrade the grovy-jsr223 version to the one included with Rundeck