File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrappedConnection using Jboss 4.0GA. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrappedConnection using Jboss 4.0GA." Watch "java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrappedConnection using Jboss 4.0GA." New topic
Author

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

Sanket Akre
Greenhorn

Joined: Jul 16, 2008
Posts: 15
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

Joined: Jul 16, 2008
Posts: 15
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 ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrappedConnection using Jboss 4.0GA.