title: java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast
body: <p>Application Version: <strong>JBoss 7.0.0, Oracle 11g (ojdbc6.jar) and JDK 6 version</strong> </p>
  
  <p>I have a problem when I am trying to insert the value for CLOB Data type using <code>CLOB.createTemporary</code> function, getting the below exception.</p>
  
  <pre><code>java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast to oracle.jdbc.OracleConnection</code></pre>
  
  <p>After searching in multiple forums, did not find any solution. 
  <a href="https://forums.oracle.com/forums/thread.jspa?threadID=279238" rel="noreferrer">https://forums.oracle.com/forums/thread.jspa?threadID=279238</a></p>
  
  <p>Basic steps required to deploy a WAR file and configuring the JBoss oracle driver pool configuration is done. But, still not able to get through this issue.</p>
  
  <p>Please provide solution to fix this problem.</p>