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
ibatis异常
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
悬赏问题
- ¥15 求给定范围的全体素数p的(p-2)的连乘积
- ¥15 VFP如何使用阿里TTS实现文字转语音?
- ¥100 需要跳转番茄畅听app的adb命令
- ¥50 寻找一位有逆向游戏盾sdk 应用程序经验的技术
- ¥15 请问有用MZmine处理 “Waters SYNAPT G2-Si QTOF质谱仪在MSE模式下采集的非靶向数据” 的分析教程吗
- ¥50 opencv4nodejs 如何安装
- ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
- ¥15 nginx反向代理获取ip,java获取真实ip
- ¥15 eda:门禁系统设计
- ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页