我让它工作了!我剪切并粘贴了 Spring 3.1.1 代码,并简单地将常量替换为新包,如...
...
private static final String WRAPPED_CONNECTION_NAME = "org.jboss.jca.adapters.jdbc.WrappedConnection";
private static final String WRAPPED_STATEMENT_NAME = "org.jboss.jca.adapters.jdbc.WrappedStatement";
private static final String WRAPPED_RESULT_SET_NAME = "org.jboss.jca.adapters.jdbc.WrappedResultSet";
...
然后我包含了一个 jboss-deployment-structure.xml 文件以包含对丢失类的依赖...
<jboss-deployment-structure>
<deployment>
<!-- need this for Spring CLOB along with my custom JBoss7NativeJdbcExtractor -->
<dependencies>
<module name="org.jboss.ironjacamar.jdbcadapters" />
</dependencies>
</deployment>
</jboss-deployment-structure>