Tuesday, July 8, 2014

Caused by: java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource

Exception :- 
Caused by: java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource


First ensure that you have included commons-collections and  commons-dbcp jar in classpath. Click here to download
commons-collections and  commons-dbcp jar

If you are using maven then add following dependency in pom.xml 

<dependency>
    <groupId>commons-collections</groupId>
    <artifactId>commons-collections</artifactId>
    <version>3.2.1</version>
</dependency>


<dependency>
    <groupId>commons-dbcp</groupId>
    <artifactId>commons-dbcp</artifactId>
    <version>1.4</version>
</dependency>


3 comments:

  1. Excellent and very cool idea and the subject at the top of magnificence and I am happy to this post..Interesting post!
    Thanks for writing it.What's wrong with this kind of post exactly? It follows your previous guideline for post length as well as clarity.
    Cloud Computing Training in Chennai

    ReplyDelete
  2. Thanks a lot.We will you have to share this blog content information increase with my knowledge learning skills Hadoop Training.We develop to that's our info creative was really good.
    Hadoop Online Training

    ReplyDelete

ShareThis

Loading...