我正在尝试在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>
这是执行call语句时抛出的错误:
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" />
答案 0 :(得分:1)
应用程序需要配置为使用公共库引用,以便它可以看到同一个类:
<application ...>
<classloader commonLibraryRef="DB2iToolbackLib"/>
</application>