Websphere Application Server V8.5 Liberty Profile&访问iSeries

时间:2014-06-11 08:20:13

标签: web-services deployment ibm-midrange egl websphere-liberty

我正在尝试在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" />

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

1 个答案:

答案 0 :(得分:1)

应用程序需要配置为使用公共库引用,以便它可以看到同一个类:

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