I have been getting this error while starting up my server with my worklight project (.war) deployed on it. Was wondering if anyone has any inputs. Below are the relevant in
The first error is "FWLSE0188E: Failed to connect to DB2 database : Cannot create PoolableConnectionFactory ([jcc][10389][12245][3.67.27] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null) [project MyProjectName]"
The recommended way to configure the DB2 data sources in Worklight is to use the JDBC 4.0 driver (db2jcc4.jar and its associated license jar files in the same directory), as described in the Worklight documentation (here and here). It does not involve the use of native code libraries.
Therefore I would check the data source definition in Liberty's server.xml file.
Solved !!! No runtime configuratin can be found
I was getting this error because there were two instances of WL Admin Services(wladmin and worklightadmin) deployed in the server. Their configuration was added in server.xml twice, once by worklight installer and once by worklight server configuration tool. So my application was communicating to 'worklightadmin' Admin Service and WL Console communicating to 'wladmin' Admin Service. That's why there was no runtime available in the worklight console. Uninstalling 'wladmin' Admin Service from server by removing below snippet does the trick.
<!-- Declare the Worklight Administration Service application. -->
<!-- <application id="wladmin" location="worklightadmin.war" name="wladmin" type="war">
<application-bnd>
<security-role name="worklightadmin">
<user name="user"/>
</security-role>
<security-role name="worklightdeployer">
<user name="user"/>
</security-role>
<security-role name="worklightmonitor">
<user name="user"/>
</security-role>
<security-role name="worklightoperator">
<user name="user"/>
</security-role>
</application-bnd>
<classloader delegation="parentLast">
<commonLibrary>
<fileset dir="${wlp.install.dir}/lib" includes="com.ibm.ws.crypto.passwordutil_1.0.2.jar"/>
</commonLibrary>
</classloader>
</application> -->
<!-- Declare the JNDI properties for the Worklight Administration Service. -->
<!-- <jndiEntry jndiName="wladmin/ibm.worklight.admin.environmentid" value="WL_UAT_Server_Config"/> -->