-
1. Re: Exception: java.lang.ClassCastException: org.jboss.as.connector.subsystems.datasources.WildFlyDataSource cannot be cast to javax.sql.DataSource
jaysensharma Nov 16, 2015 11:17 AM (in response to irshadsapphire)By any chance are you packaging a JAR inside your "WEB-INF/lib" (or inside any of your custom module) which is including the class "javax.sql.DataSource" ? Or "org.jboss.as.connector.subsystems.datasources.WildFlyDataSource". If yes then you are not supposed to include any if such JAR inside your application lib.
-
2. Re: Exception: java.lang.ClassCastException: org.jboss.as.connector.subsystems.datasources.WildFlyDataSource cannot be cast to javax.sql.DataSource
irshadsapphire Nov 16, 2015 11:44 PM (in response to jaysensharma)We are not using any lib, the problem i am facing is in wildfly 9.0.2.Final but same war if i deploy in wildfly 8.1.0.Final it is working.
-
3. Re: Exception: java.lang.ClassCastException: org.jboss.as.connector.subsystems.datasources.WildFlyDataSource cannot be cast to javax.sql.DataSource
abhinav.gupta01 Feb 4, 2016 5:45 AM (in response to irshadsapphire)Did you get any solution for this issue ?
I am facing exact same problem with my application while moving from 8.2 to 9.0.2 .
-
4. Re: Exception: java.lang.ClassCastException: org.jboss.as.connector.subsystems.datasources.WildFlyDataSource cannot be cast to javax.sql.DataSource
abhinav.gupta01 Feb 4, 2016 6:41 AM (in response to irshadsapphire)I got the issue with my application.
In one of my custom modules , we have jboss-j2ee.jar , which contains class "javax.sql.DataSource". I removed it and it worked fine !
Thanks Jay for pointers.
~Abhinav