Spring uses c3p0 to quote ClassNotFoundException:com.mchange.v2.ser.Indirector

Source: Internet
Author: User

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.java:188)

At Java.lang.ClassLoader.loadClass (classloader.java:307)

At Sun.misc.launcher$appclassloader.loadclass (launcher.java:301)

At Java.lang.ClassLoader.loadClass (classloader.java:252)

At Java.lang.ClassLoader.loadClassInternal (classloader.java:320)

... More



The reason is that when we imported the C3pojar package, we did not lead a bad guy called Mchange-commons-java-0.2.11.jar ;

Do not know why the designer to do so, from the name of the jar is probably the basic common code about Java, the implementation of the connection pool requires a lot of reuse of the code in this jar, so kicked out

Spring uses c3p0 to quote ClassNotFoundException:com.mchange.v2.ser.Indirector

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.