JDBC DataSource or XADataSource cannot be cast to java.sql.Driver in JBoss EAP
Issue
-
Encountering an error using
DB2SimpleDataSource... IJ000610: Unable to fill pool: javax.resource.ResourceException: Could not create connection ... Caused by: javax.resource.ResourceException: Failed to register driver for: com.ibm.db2.jcc.DB2SimpleDataSource ... Caused by: java.lang.ClassCastException: com.ibm.db2.jcc.DB2SimpleDataSource cannot be cast to java.sql.Driver ...
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6
- 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
