Reputation: 394
I'm trying to deploy our EGL-based webservice project on Websphere Application Server Liberty Profile V8.5. The webservices are calling EGL-Generated cobol programs that are located on another server. Also, we need a JDBC connection to the database located on the iSeries (Power7) I have added this coding in 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>
This is the error thrown when the call-statement gets executed:
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.
I'm assuming the jt400.jar doesn't get loaded. Also tried the default fileset dir:
<fileset dir="/QIBM/ProdData/Http/Public/jt400/lib" />
Upvotes: 2
Views: 1280
Reputation: 33936
The application needs to be configured to use a common library reference so it has visibility to the same class:
<application ...>
<classloader commonLibraryRef="DB2iToolbackLib"/>
</application>
Upvotes: 1