UnsatisfiedLinkError when creating DB2 XA Datasource

Solution Verified - Updated -

Issue

  • server.log entry similar to
INFO  [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS015859: Deployed "db2jcc4.jar" (runtime-name : "db2jcc4.jar")
WARN  [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (JCA PoolFiller) IJ000610: Unable to fill pool: javax.resource.ResourceException: Could not create connection
    at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:525)
    at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:434)
    at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:873) [ironjacamar-core-impl-1.0.32.Final-redhat-1.jar:1.0.32.Final-redhat-1]
    at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.fillToMin(SemaphoreArrayListManagedConnectionPool.java:814) [ironjacamar-core-impl-1.0.32.Final-redhat-1.jar:1.0.32.Final-redhat-1]
    at org.jboss.jca.core.connectionmanager.pool.mcp.PoolFiller.run(PoolFiller.java:97) [ironjacamar-core-impl-1.0.32.Final-redhat-1.jar:1.0.32.Final-redhat-1]
    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]
Caused by: com.ibm.db2.jcc.am.SqlException: [jcc][10389][12245][4.19.26] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path:  ERRORCODE=-4472, SQLSTATE=null
    at com.ibm.db2.jcc.am.kd.a(Unknown Source)
    at com.ibm.db2.jcc.am.kd.a(Unknown Source)
    at com.ibm.db2.jcc.am.kd.a(Unknown Source)
    at com.ibm.db2.jcc.t2.a.a(Unknown Source)
    at com.ibm.db2.jcc.t2.T2Configuration.<clinit>(Unknown Source)
    at com.ibm.db2.jcc.DB2BaseDataSource.instantiateLogWriter(Unknown Source)
    at com.ibm.db2.jcc.DB2BaseDataSource.computeJccLogWriterForNewConnection(Unknown Source)
    at com.ibm.db2.jcc.DB2BaseDataSource.computeJccLogWriterForNewConnection(Unknown Source)
    at com.ibm.db2.jcc.DB2XADataSource.getXAConnection(Unknown Source)
    at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:508)

Environment

  • Red Hat JBoss Enterprise Application Platform 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content