java.lang.NoClassDefFoundError: org/apache/commons/dbcp2/BasicDataSource

Stack Overflow | richersoon | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NoClassDefFoundError when running test via Ant but working when Deployed in Tomcat

    Stack Overflow | 7 months ago | richersoon
    java.lang.NoClassDefFoundError: org/apache/commons/dbcp2/BasicDataSource

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/apache/commons/dbcp2/BasicDataSource

      at com.x.ws.repo.DatabaseConnection.<init>()
    2. com.x.ws
      FooTest.setUp
      1. com.x.ws.repo.DatabaseConnection.<init>(Unknown Source)
      2. com.x.ws.repo.DatabaseConnection.getSynchronizedInstance(Unknown Source)
      3. com.x.ws.repo.DatabaseConnection.getInstance(Unknown Source)
      4. com.x.ws.repo.Foo.<init>(Unknown Source)
      5. com.x.ws.repo.FooTest.setUp(Unknown Source)
      5 frames