Application Version: JBoss 7.0.0, Oracle 11g (ojdbc6.jar) and JDK 6 version
I have a problem when I am trying to insert the value for CLOB Data typ
Got a similar problem in a Rails App with Jruby 1.7.2, JBoss 7.1 and Oracle (oracle_enhanced adapter)
Java::JavaLang::ClassCastException: oracle.jdbc.driver.T4CConnection cannot be cast to oracle.jdbc.OracleConnection
This solution worked for me.
I put the jboss-deployment-structure.xml in the config/ directory of the rails app and updated the warbler config to include the file in the war file:
config.webinf_files += FileList["config/jboss-deployment-structure.xml"]
After deploy all worked fine ... Thx a lot.