java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast

后端 未结 3 1168
执念已碎
执念已碎 2020-12-16 05:39

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

3条回答
  •  轮回少年
    2020-12-16 06:27

    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.

提交回复
热议问题