vinegardou 2012-01-17 02:07 采纳率: 100%
浏览 302
已采纳

ibatis异常

Exception in thread "Main Thread" java.lang.ExceptionInInitializerError
Caused by: com.ibatis.sqlmap.client.SqlMapException: There was an error while building the SqlMap instance.

--- The error occurred in the SQL Map Configuration file.

--- The error occurred while configuring the data source.

--- Check the data source type or class.

--- Cause: com.ibatis.sqlmap.client.SqlMapException: Error initializing DataSource. Could not instantiate DataSourceFactory. Cause: java.lang.ClassNotFoundException: C3P0
Caused by: java.lang.ClassNotFoundException: C3P0
Caused by: com.ibatis.sqlmap.client.SqlMapException: Error initializing DataSource. Could not instantiate DataSourceFactory. Cause: java.lang.ClassNotFoundException: C3P0
Caused by: java.lang.ClassNotFoundException: C3P0
at com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.buildSqlMap(XmlSqlMapClientBuilder.java:203)
at com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:49)
at com.onlineoa.model.dao.CommonDao$1.initialValue(CommonDao.java:20)
at com.onlineoa.model.dao.CommonDao$1.initialValue(CommonDao.java:1)
at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
at java.lang.ThreadLocal.get(ThreadLocal.java:131)
at com.onlineoa.model.dao.CommonDao.newInstance(CommonDao.java:33)
at com.onlineoa.model.biz.UserActiveBiz.(UserActiveBiz.java:11)
Caused by: com.ibatis.sqlmap.client.SqlMapException: Error initializing DataSource. Could not instantiate DataSourceFactory. Cause: java.lang.ClassNotFoundException: C3P0
Caused by: java.lang.ClassNotFoundException: C3P0
at com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.parseDataSource(XmlSqlMapClientBuilder.java:386)
at com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.parseTransactionManager(XmlSqlMapClientBuilder.java:328)
at com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.parseSqlMapConfig(XmlSqlMapClientBuilder.java:225)
at com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.buildSqlMap(XmlSqlMapClientBuilder.java:199)
... 7 more
Caused by: java.lang.ClassNotFoundException: C3P0
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.ibatis.common.resources.Resources.classForName(Resources.java:244)
at com.ibatis.common.resources.Resources.instantiate(Resources.java:260)
at com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.parseDataSource(XmlSqlMapClientBuilder.java:377)
... 10 more

展开全部

  • 写回答

1条回答 默认 最新

  • iteye_14657 2012-01-17 02:29
    关注

    数据库连接错了!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部