I'm tring to access a DB2 data source on a remote machine, by a java web app deployed on a liberty websphere machine. In the moment the code execute the lookup ok the data source from the context the following error returns to me:
I FFDC1015I: An FFDC Incident has been created: "java.lang.ClassNotFoundException com.ibm.db2.jcc.DB2ConnectionPoolDataSource com.ibm.ws.injectionengine.processor.ResourceProcessor.loadTypeClass 1142" at ffdc_16.07.28_15.54.28.0.log"
W CWNEN0046W: The com.ibm.db2.jcc.DB2ConnectionPoolDataSource type specified on the resource-ref, resource-env-ref, or message-destination-ref with the jdbc/db2/primadb name in the db2-webapp.war module could not be loaded. Compatibility type checking will not be performed for this resource reference.
1)Have some help to access the data source?
2)Opened I opened the data source, I wuold like to open a connection and execute a prepared stateemnt on the the DB. Code here should be different from using the traditional javax.sql.Datasource?
the relevant part of my server.xml
<dataSource jndiName="jdbc/db2/primadb" type="javax.sql.DataSource">
<jdbcDriver javax.sql.DataSource="com.ibm.db2.jcc.DB2ConnectionPoolDataSource"
libraryRef="db2Lib"/>
<properties.db2.jcc driverType="4" serverName="172.17.0.3"
portNumber="50000" databaseName="PRIMADB"
user="db2inst1" password="*****"/>
</dataSource>
<library id="db2Lib">
<fileset dir="lib" includes="*.jar"/>
</library>
<application id="db2-webapp" name="Web App DB2">
<classLoader commonLibraryRef="db2Lib"/>
</application>