6 Replies Latest reply on Aug 6, 2015 9:36 AM by parag vivarekar

    ClassCastException in Jboss EAP 6.4.0 when using non-jdbc compliant driver

    parag vivarekar Newbie

      I am using a non Jdbc compliant datasource. For this added a modue say com.test.datasource in jboss modules folder. The dependencies(jars) are also added into the com.test.datasource:main with module xml.

      I am using a war file to access this datasource. In this war file I am using dependencies from the same jars which are used in the com.test.datasource. While casting datasource connection from com.test.datasource to the war file datasource, even if both classes are same, I am  getting class cast exception since the com.test.datasource and war file have different classloader for the same classes.

      How can I solve this problem?