Websphere Application Server V8.5 Liberty Profile & acce



我正在尝试在Websphere Application Server Liberty Profile V8.5上部署基于egl的web服务项目。web服务调用位于另一台服务器上的egl生成的cobol程序。此外,我们还需要一个JDBC连接到位于iSeries (Power7)上的数据库。我在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没有被加载。也尝试了默认的文件集dir:

 <fileset dir="/QIBM/ProdData/Http/Public/jt400/lib" />

来源:http://www - 01. - ibm.com/support/knowledgecenter/ssaw57_8.5.5/com.ibm.websphere.wlp.nd.doc/ae/twlp_dep_configuring_ds.html

应用程序需要配置为使用公共库引用,以便它对同一个类具有可见性:

<application ...>
    <classloader commonLibraryRef="DB2iToolbackLib"/>
</application>

最新更新