java.lang.ClassCastException: oracle.jdbc.replay.OracleDataSourceImpl cannot be cast to javax.naming.spi.ObjectFactory When Enabling Replay for Application Continuity With UCP
(Doc ID 2888553.1)
Last updated on MARCH 28, 2024
Applies to:
Universal Connection Pool - Version 21.5 and laterInformation in this document applies to any platform.
Symptoms
After changing UCP factory class from oracle.ucp.jdbc.PoolDataSourceImpl to oracle.jdbc.replay.OracleDataSourceImpl to enable replay for Application Continuity with UCP/JDBC 21.5, the following exception is observed during Tomcat startup:
java.lang.ClassCastException: oracle.jdbc.replay.OracleDataSourceImpl cannot be cast to javax.naming.spi.ObjectFactory
at com.....Tomcat....CryptovaultObjectFactory.getObjectInstance(...CryptovaultObjectFactory.java:65)
at org.apache.naming.factory.FactoryBase.getObjectInstance(FactoryBase.java:96)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
at org.apache.naming.NamingContext.lookup(NamingContext.java:846)
Changes
UCP factory class was changed from oracle.ucp.jdbc.PoolDataSourceImpl to oracle.jdbc.replay.OracleDataSourceImpl.
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 |
Changes |
Cause |
Solution |