users@glassfish.java.net

Typecast prob with the com.sun.jdbc40.connectionholder to wsjdbcconnection

From: <glassfish_at_javadesktop.org>
Date: Fri, 20 Aug 2010 14:39:10 PDT

I migrating the Web application which is using in IBM WSAD and WAS server to Netbeans and Glassfish. I almost completed with this migration except type casting in
connection. They are using to pass java arrays to procedure in oracle with the following codes in that application.
Connection con = db.getConnection();;(Connection)WSJdbcUtil.getNativeConnection((WSJdbcConnection) con );

When try to run the code ,it reads the error "com.sun.gjc.spi.jdbc40.connectionholder"
cannot to cast " com.com.ibm.ws.rsadapter.jdbc.WSJdbcConnection" in run time.

for my understanding, it tried to establish the connection using connection holder and unable to cast WSJdbcConnection.

Please sort this problem. It's main stopper in my migration project
[Message sent by forum member 'balaji45678']

http://forums.java.net/jive/thread.jspa?messageID=480711