错误:java.lang.NoClassDefFoundError: commchangev2serIndirector

    xiaoxiao2022-06-22  30

    异常:

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [bean-properties.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.mchange.v2.c3p0.ComboPooledDataSource]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector

    Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.mchange.v2.c3p0.ComboPooledDataSource]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector

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

    问题原因:缺省mchange-commons-java-0.2.3.4.jar包

    解决方法:在工程lib文件下加入mchange-commons-java-0.2.3.4.jar包,并右击鼠标,选择build path---->configure build path即可。

    转载请注明原文地址: https://ju.6miu.com/read-1122850.html

    最新回复(0)