- 
        1. Re: Getting ClassCastException in JBoss AS 6maxandersen Nov 21, 2011 11:58 AM (in response to shrutee)1 of 1 people found this helpfulsounds like you might have two copies of the oracle classes/jar visible on your classpath ? Maybe you got one in the server and one in the jar/war of your app ? That could cause problems. 
- 
        2. Re: Getting ClassCastException in JBoss AS 6shrutee Nov 22, 2011 1:59 AM (in response to maxandersen)Thanks a lot Max I removed ojdbc14.jar from my application WAR and it worked 
- 
        3. Re: Getting ClassCastException in JBoss AS 6sudhi Mar 1, 2013 1:52 AM (in response to shrutee)hi, i have similar issue, I am using Jboss 7 AS When i start server everything works fine but when i restart application not the server, i am getting above exception. If i restart server then it works fine. Is this something related to Class loading ? by the way i verified there is no duplicate jar available in server. It is available only in application. i need help on solving this issue. Thanks Sudhi 
- 
        4. Re: Getting ClassCastException in JBoss AS 6dgolovin Mar 4, 2013 1:32 PM (in response to sudhi)You said: "JBoss 7 AS", what is exact version? you changed something in your application between starting the server and restarting the application, it that correct? What was changed? 
- 
        5. Re: Getting ClassCastException in JBoss AS 6sudhi Mar 7, 2013 1:25 AM (in response to dgolovin)Hi Denis, Sorry for late reply, i am using JBoss_7.1.1, Changes were related to application logic and nothing related to libraries. 
 
     
     
    