My Oracle Support Banner

UnsatisfiedLinkError: /<path to>/database/11.2.0/client/lib/ is thrown when OCI JDBC driver is used with GlassFish 3.1.2 (Doc ID 1573858.1)

Last updated on NOVEMBER 06, 2023

Applies to:

Oracle GlassFish Server - Version 3.1.2 and later
Information in this document applies to any platform.


 When an application running on GlassFish 3.1.2 server configured to use OCI JDBC driver tries to connect to Oracle Database, the following errors are seen in server log and the application fails to connect to the Database:

Caused by: java.lang.UnsatisfiedLinkError: /<path to>/database/11.2.0/client/lib/ cannot open shared object file:


Caused by: java.sql.SQLException: Internal Error: Fetch error message failed!
       at oracle.jdbc.driver.T2CConnection.checkError(
       at oracle.jdbc.driver.T2CConnection.logon(
       at oracle.jdbc.driver.PhysicalConnection.<init>(
       at oracle.jdbc.driver.T2CConnection.<init>(
       at oracle.jdbc.driver.T2CDriverExtension.getConnection(
       at oracle.jdbc.driver.OracleDriver.connect(
       at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(
       at oracle.jdbc.pool.OracleDataSource.getConnection(
       at oracle.jdbc.pool.OracleDataSource.getConnection(
       at com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(


[#|2013-07-16T02:47:07.799+0000|SEVERE|oracle-glassfish3.1.2||_ThreadID=<ID>;_ThreadName=<name>; w: 5;|java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: ORA-12154: TNS:could not resolve the connect identifier specified
       at com.sun.gjc.spi.base.DataSource.getConnection(


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.