我正在尝试在 Websphere Application Server Liberty Profile V8.5 上部署我们基于 EGL 的 Web 服务项目。Web 服务正在调用位于另一台服务器上的 EGL 生成的 cobol 程序。此外,我们需要与 iSeries (Power7) 上的数据库建立 JDBC 连接,我在 server.xml 中添加了以下代码:
<dataSource id="db2iToolbox" jndiName="jdbc/db2iToolbox">
<jdbcDriver libraryRef="DB2iToolboxLib"/>
<properties.db2.i.toolbox databaseName="databaseforEGL" serverName="iseriesserver"/>
</dataSource>
<library id="DB2iToolboxLib">
<fileset dir="C:\jars" includes="jt400.jar"/>
</library>
这是调用语句被执行时抛出的错误:
EGL0010E An external dependency is missing. The following exception occurred.
Exception: java.lang.NoClassDefFoundError:
com.ibm.as400.access.ErrorCompletingRequestException
EGL0002I The error occurred in LoginLib processing the login function.
我假设 jt400.jar 没有被加载。还尝试了默认文件集目录:
<fileset dir="/QIBM/ProdData/Http/Public/jt400/lib" />