c3p0的错误mchange.v2.ser.Indirector

 



  1. mchange-commons-java-0.2.11.jar   没有会报错

(java.lang.NoClassDefFoundError:com.mchange.v2.ser.Indirector)

2 XML配置文件一定要小心 一个标点都不能错!!!!

<property name="jdbcUrl">jdbc:mysql://127.0.0.1:3306/demo</property>

mysql 后由于误操作少了个/   导致驱动找不到

原文地址:https://www.cnblogs.com/yirgaMonkey/p/9038016.html

时间: 2024-10-03 07:50:17

c3p0的错误mchange.v2.ser.Indirector的相关文章

【JAVA错误笔记】 - c3p0问题java.lang.NoClassDefFoundError:com.mchange.v2.ser.Indirector

错误描述:java.lang.NoClassDefFoundError:com.mchange.v2.ser.Indirector 原因分析: 这是c3p0的一个错误信息,我们在下载 c3p0时候,zip压缩包中,有三个jar,其中一个 c3p0-x.x.x.jar,还有一个  mchange.......jar的文件, 该错误原因就是缺少该jar;至于 该jar包的作用就是,一,解决上面的问题,二:本身作用,见,,,jar解压后的源码. 解决方案: mchange-commons-java-版

Spring配置c3p0数据源时出错报:java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector

今天在使用Spring配置c3p0数据源时,使用的数据库是mysql,服务器是tomcat,运行时报了一个 java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector 网络上找了很久都没有解决,最后发现是因为:         C3P0 少了个 jar 包,mchange-commons-java-0.2.3.1.jar 因为c3p0.jar依赖另一个jar包,就是mchange-commons-java-0.2.3.1.jar.

Spring 使用C3P0的时候报ClassNotFoundException: com.mchange.v2.ser.Indirector

Caused by: java.lang.ClassNotFoundException: com.mchange.v2.ser.Indirector at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.jav

Caused by: java.lang.ClassNotFoundException: com.mchange.v2.ser.Indirector

启动tomcat报如下错误: Caused by: java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2398) at java.lang.Class.getConstructor0(C

java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector

在使用Spring框架是报错:java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2

Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector

错因:在使用c3p0连接池时,需要导入两个jar包,因为之前下的最新版的c3p0-0.9.5.3.jar,与之对应的是mchange-commons-java-0.2.19.jar. 而且这个版本我又找了很久,所以索性换成低版本! 连接成功: 原文地址:https://www.cnblogs.com/sheepcore/p/12607872.html

INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource

六月 08, 2014 3:07:09 下午 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000,

Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource

INFO AbstractPoolBackedDataSource:462 - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 2, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> nu

c3p0 空指针异常 com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.

[email protected]5 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: