I am writing a Java program to get DataSource from wls10.3 to call DB SP.
I am able to get DataSource from wls10.3 and create Connection . But, I cant cast Java Connection to OracleConnection object.
Getting below exception: Exception in thread "main" java.lang.ClassCastException: weblogic.jdbc.rmi.SerialConnection_weblogic_jdbc_rmi_internal_ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_T4CConnection_1035_WLStub cannot be cast to oracle.jdbc.OracleConnection+
Please help me on this guys.
Hi, sorry Kal, that is already taken care of, else WLS couldn't have produced the connection already.
So, Hari, your application is a standalone java program, and you are going to have to double-check that
the application environment has no weblogic or driver classes in it's class path that are of any different
version than the WebLogic server you are talking to.