webtier@glassfish.java.net

conexion java.lang.ClassCastException: com.sun.gjc.spi.jdbc40.DataSource40

From: <webtier_at_javadesktop.org>
Date: Sun, 15 Mar 2009 09:25:41 PDT

hi,
i'm using the next code to access an Oracle Database from glassfish:
javax.naming.InitialContext ic = new javax.naming.InitialContext();
oracle.jdbc.pool.OracleConnectionPoolDataSource ds = (oracle.jdbc.pool.OracleConnectionPoolDataSource)ic.lookup(jdbc/pool");

and i obtain the next error Exception: java.lang.ClassCastException: com.sun.gjc.spi.jdbc40.DataSource40 cannot be cast to oracle.jdbc.pool.OracleConnectionPoolDataSource

Anybody knows how can i configure glassfish connection resource or web server, to obtain a pooled connection?.

the users of aplication are the same of database. whit these can i made a pool for different users?

Thanks.
[Message sent by forum member 'gpiramide' (gpiramide)]

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