apache / hop

Hop Orchestration Platform
https://hop.apache.org/
Apache License 2.0
918 stars 334 forks source link

[Bug]: Action AS400Command has a bad dependency to the JT400 library #4085

Closed nadment closed 1 month ago

nadment commented 2 months ago

Apache Hop version?

2.9.0

Java version?

Java 11

Operating system

Windows

What happened?

The JT400 library has been moved to the lib/jdbc folder, but it seems that the actions don't know how to load libraries from this folder.

The file dependencies.xml is linked to the old lib folder:

../../databases/as400/lib

One solution would be to create a tech/as400 plugin that brings together the database and the action with the library within it.

Workaround : put the JT400 library in the "\plugins\actions\as400command\lib" folder

Issue Priority

Priority: 3

Issue Component

Component: Actions

hansva commented 2 months ago

you can add the " isIncludeJdbcDrivers = true" to the transform or action annotation and it will add the folder to the classpath of that plugin.

hansva commented 2 months ago

or a classloadergroup should do the trick too. https://github.com/apache/hop/blob/5bce820bdb2277f3082cc41b03533476a13dfe80/plugins/transforms/pgbulkloader/src/main/java/org/apache/hop/pipeline/transforms/pgbulkloader/PGBulkLoaderMeta.java#L44-L53

nadment commented 1 month ago

Not resolved

nadment commented 1 month ago

Finally it's ok