ibatis连接数据库的问题,高分求解决!!!!! 200
OSGI连接数据库,每个bundle都要连同一个数据库,连接数据库是OSGi服务发布的,但是有个bundle连接数据库出了问题,其他的都连上了,定位不到问题出在哪,求高手...
OSGI连接数据库,每个bundle都要连同一个数据库,连接数据库是OSGi服务发布的,但是有个bundle连接数据库出了问题,其他的都连上了,定位不到问题出在哪,求高手解决!!!
Caused by: com.ibatis.sqlmap.client.SqlMapException: Error initializing TransactionManager. Could not instantiate TransactionConfig. Cause: java.lang.ClassCastException: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig cannot be cast to com.ibatis.sqlmap.engine.transaction.TransactionConfig
Caused by: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/transactionManager/end()'. Cause: com.ibatis.sqlmap.client.SqlMapException: Error initializing TransactionManager. Could not instantiate TransactionConfig. Cause: java.lang.ClassCastException: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig cannot be cast to com.ibatis.sqlmap.engine.transaction.TransactionConfig
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/transactionManager/end()'. Cause: com.ibatis.sqlmap.client.SqlMapException: Error initializing TransactionManager. Could not instantiate TransactionConfig. Cause: java.lang.ClassCastException: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig cannot be cast to com.ibatis.sqlmap.engine.transaction.TransactionConfig
Caused by: java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/transactionManager/end()'. Cause: com.ibatis.sqlmap.client.SqlMapException: Error initializing TransactionManager. Could not instantiate TransactionConfig. Cause: java.lang.ClassCastException: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig cannot be cast to com.ibatis.sqlmap.engine.transaction.TransactionConfig
Caused by: java.lang.ClassCastException: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig cannot be cast to com.ibatis.sqlmap.engine.transaction.TransactionConfig
Caused by: com.ibatis.sqlmap.client.SqlMapException: Error initializing TransactionManager. Could not instantiate TransactionConfig. Cause: java.lang.ClassCastException: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig cannot be cast to com.ibatis.sqlmap.engine.transaction.TransactionConfig
sqlMapConfig文件如下::
<sqlMapConfig>
<transactionManager type="JDBC" commitRequired="false">
<dataSource type="DBCP">
<property name="JDBC.Driver" value="${HDBDriver}" />
<property name="JDBC.ConnectionURL" value="${HDBURL}" />
<property name="JDBC.Username" value="${HDBUserName}" />
<property name="JDBC.Password" value="${HDBPassword}" />
<property name="Pool.MaximumActiveConnections" value="20"/>
<property name="Pool.MaximumIdleConnections" value="5"/>
<property name="Pool.MaximumWait" value="60000"/>
<property name="Pool.LogAbandoned" value="true"/>
<property name="Pool.RemoveAbandoned" value="false"/>
<property name="Pool.RemoveAbandonedTimeout" value="50000"/>
</dataSource>
</transactionManager> 展开
Caused by: com.ibatis.sqlmap.client.SqlMapException: Error initializing TransactionManager. Could not instantiate TransactionConfig. Cause: java.lang.ClassCastException: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig cannot be cast to com.ibatis.sqlmap.engine.transaction.TransactionConfig
Caused by: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/transactionManager/end()'. Cause: com.ibatis.sqlmap.client.SqlMapException: Error initializing TransactionManager. Could not instantiate TransactionConfig. Cause: java.lang.ClassCastException: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig cannot be cast to com.ibatis.sqlmap.engine.transaction.TransactionConfig
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/transactionManager/end()'. Cause: com.ibatis.sqlmap.client.SqlMapException: Error initializing TransactionManager. Could not instantiate TransactionConfig. Cause: java.lang.ClassCastException: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig cannot be cast to com.ibatis.sqlmap.engine.transaction.TransactionConfig
Caused by: java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/transactionManager/end()'. Cause: com.ibatis.sqlmap.client.SqlMapException: Error initializing TransactionManager. Could not instantiate TransactionConfig. Cause: java.lang.ClassCastException: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig cannot be cast to com.ibatis.sqlmap.engine.transaction.TransactionConfig
Caused by: java.lang.ClassCastException: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig cannot be cast to com.ibatis.sqlmap.engine.transaction.TransactionConfig
Caused by: com.ibatis.sqlmap.client.SqlMapException: Error initializing TransactionManager. Could not instantiate TransactionConfig. Cause: java.lang.ClassCastException: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig cannot be cast to com.ibatis.sqlmap.engine.transaction.TransactionConfig
sqlMapConfig文件如下::
<sqlMapConfig>
<transactionManager type="JDBC" commitRequired="false">
<dataSource type="DBCP">
<property name="JDBC.Driver" value="${HDBDriver}" />
<property name="JDBC.ConnectionURL" value="${HDBURL}" />
<property name="JDBC.Username" value="${HDBUserName}" />
<property name="JDBC.Password" value="${HDBPassword}" />
<property name="Pool.MaximumActiveConnections" value="20"/>
<property name="Pool.MaximumIdleConnections" value="5"/>
<property name="Pool.MaximumWait" value="60000"/>
<property name="Pool.LogAbandoned" value="true"/>
<property name="Pool.RemoveAbandoned" value="false"/>
<property name="Pool.RemoveAbandonedTimeout" value="50000"/>
</dataSource>
</transactionManager> 展开
4个回答
快又稳
2024-10-28 广告
2024-10-28 广告
数据库服务器作为广州快又稳网络科技有限公司的核心基础设施之一,承载着公司海量数据的存储、处理与访问需求。我们采用高性能、高可用性的服务器架构,确保数据的安全性、完整性和快速响应能力。通过先进的数据库管理系统,优化查询效率,支持复杂业务场景下...
点击进入详情页
本回答由快又稳提供
展开全部
强制类型转换到两个包下JdbcTransactionConfig到TransactionConfig的异常 查下代码或者spring的配置文件
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2012-02-19
展开全部
啥啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
说实话我也看不懂·· 你删了从下不得了么··
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询