Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrappedConnection using Jboss 4.0GA.

 
Sanket Akre
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Connection pooling in Jboss 4.0 GA. In my application we are using Oracle object like ARRAY,TAB type etc for transactions.
My problem is that I have getting following error:
java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrappedConnection

Can you tell me how to resolve this issue?

Regards,
Sanket Akre
 
Sanket Akre
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still my problem is not solve.

Please see following coding for Connection creation:

java.sql.Connection conn = null;
javax.naming.InitialContext ic = new javax.naming.InitialContext();

// for Jboss JNDI_NAME = java:OracleDS
javax.sql.DataSource ds = (javax.sql.DataSource)ic.lookup(projsp.UtilityFunctions.getProperty("JNDI_NAME"));
conn = ds.getConnection();


Is there any setting in JBoss Application server to execute Oracle objects such as ARRAY and TAB type ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic