My Oracle Support Banner

"java.lang.ClassCastException: com.sun.gjc.spi.jdbc40.ConnectionWrapper40 cannot be cast to oracle.jdbc.OracleConnection" in Oracle GlassFish Server (Doc ID 1399703.1)

Last updated on JANUARY 30, 2022

Applies to:

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

Symptoms

Oracle GlassFish Server 3.0.1 throws the following exception in the server log when using Oracle JDBC connection with the driver files 11_1_0_6_ojdbc5.jar and ojdbc6.jar and the application fails to execute.

Stack trace using 11_1_0_6_ojdbc5.jar

Cause

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
Symptoms
Cause
Solution


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