Use the server's jt400 (provided) instead of bundling it

Bundle-free jt400 21.0.6, loaded from the IAS shared library
IntegratedWebServicesLibs (/QIBM/ProdData/OS400/jt400/lib/jt400Native.jar).
A JVM lets only one classloader own jt400's native library; FetchAPI's bundled
jt400-10.7 claimed it and broke webaccess login on ERPAPIS with
UnsatisfiedLinkError AS400ImplNative.swapToNative.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 17:00:48 -04:00
co-authored by Claude Opus 5.5
parent 16bafab54a
commit 9a4aa7b4fb
+5 -1
View File
@@ -15,16 +15,20 @@
<maven.compiler.source>11</maven.compiler.source> <maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target> <maven.compiler.target>11</maven.compiler.target>
<poi.version>5.2.3</poi.version> <poi.version>5.2.3</poi.version>
<jt400.version>10.7</jt400.version> <!-- Same JTOpen as /QIBM/ProdData/OS400/jt400/lib/jt400Native.jar on the server. -->
<jt400.version>21.0.6</jt400.version>
<json.version>20231013</json.version> <json.version>20231013</json.version>
<servlet.version>4.0.1</servlet.version> <servlet.version>4.0.1</servlet.version>
</properties> </properties>
<dependencies> <dependencies>
<!-- Provided by IAS (ERPAPIS server.xml: classloader commonLibraryRef="IntegratedWebServicesLibs").
Only one classloader per JVM may own jt400's native library, so it must not be bundled. -->
<dependency> <dependency>
<groupId>net.sf.jt400</groupId> <groupId>net.sf.jt400</groupId>
<artifactId>jt400</artifactId> <artifactId>jt400</artifactId>
<version>${jt400.version}</version> <version>${jt400.version}</version>
<scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.poi</groupId> <groupId>org.apache.poi</groupId>