title: java.lang.ClassCastException: oracle.sql.CLOB cannot be cast to oracle.sql.CLOB
body: <p>I recently upgraded an application to run using JAVA 7 and JBoss 7.1.1 This application was originally developed on JAVA 5 and Jboss 4.2.2. This application uses hibernate 3 for persistence.</p>
  
  <p>On the new platform, the application is failing when there is an attempt to INSERT into a table with CLOB fields with the above error. I am using ojdbc14.jar (backend database Oracle 10.2.0.3)</p>
  
  <p>These are things that I have verified in jboss 7.1.1 configuration:</p>
  
  <ol>
  <li>Creation of the correct module for Oracle. Ensured that ojdbc14.jar exists in the correct modules directory</li>
  <li>Ensured that there are no other conflicting ojdbc.jar existing anywhere else in the jboss directory</li>
  <li>Ensured that the application is not referring to a different ojdbc.jar.</li>
  </ol>
  
  <p>Any insight would be helpful. I am pulling my hair trying to resolve this issue for almost a week now.</p>
  
  <p>Thanks much</p>