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 提建议
- 关注问题
- 邀请回答
-