my dog learned polymorphism
The moose likes JBoss/WildFly and the fly likes ClassCastException Jboss5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "ClassCastException Jboss5.0" Watch "ClassCastException Jboss5.0" New topic

ClassCastException Jboss5.0

Skanda Raman
Ranch Hand

Joined: Mar 21, 2008
Posts: 205

I have recently migrated my application from jboss 4.0.0 to jboss 5.0. However, when i try to communicate to oracle 8 database, I am getting the below error.

org.jboss.resource.adapter.jdbc.WrapperDataSource cannot be cast to javax.sql.DataSource

My oracleDS file is below.

I have also placed ojdbc14.jar in below location D:\jboss-5.0.0\server\default\lib. I am using windows 2000 OS

Please help me how to resolve the error.

Peter Johnson

Joined: May 14, 2008
Posts: 5852

Does this help:

JBoss In Action
Madhur Shrma

Joined: May 08, 2009
Posts: 11
Hi Eshwar, i am getting the same error. Did you get any solution to this?

I agree. Here's the link:
subject: ClassCastException Jboss5.0
It's not a secret anymore!