Forum Discussion

rka's avatar
rka
Occasional Contributor
9 years ago

Maven/JUnit: NoClassDefFoundError: com/btr/proxy/selector/whitelist/ProxyBypassListSelector

Hi, to run a soapui project file in a Java JUnit test (for example : SoapUITestCaseRunner runner = new SoapUITestCaseRunner();  )

I need the soapui...jar file and a lot of different 3rd party libraries, as "ProxyBypassListSelector".

 

On runtime in eclipse, I get:

java.lang.NoClassDefFoundError: com/btr/proxy/selector/whitelist/ProxyBypassListSelector

 

Do you know a maven dependency for this library?

 

Currently, I try with this dependencies in my pom:

  <!-- START SOAPUI -->    
  <dependency>
   <groupId>commons-cli</groupId>
   <artifactId>commons-cli</artifactId>
   <version>1.2</version>
  </dependency>    
    <dependency>
        <groupId>com.smartbear.soapui</groupId>
        <artifactId>soapui</artifactId>
        <version>5.2.1</version>
        <scope>test</scope>
    </dependency>    
  <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>2.4</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>commons-collections</groupId>
        <artifactId>commons-collections</artifactId>
        <version>3.2.1</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.8</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>commons-cli</groupId>
        <artifactId>commons-cli</artifactId>
        <version>1.0</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>javax.mail</groupId>
        <artifactId>mail</artifactId>
        <version>1.4</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.5-20081211</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>wsdl4j</groupId>
        <artifactId>wsdl4j</artifactId>
        <version>1.6.2</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.1.1</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>xerces</groupId>
        <artifactId>xercesImpl</artifactId>
        <version>2.9.1</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>xmlunit</groupId>
        <artifactId>xmlunit</artifactId>
        <version>1.2</version>
        <scope>test</scope>
    </dependency>
  <dependency>
   <groupId>org.eclipse.jetty</groupId>
   <artifactId>jetty-proxy</artifactId>
  <version>9.3.3.v20150827</version>
 </dependency>
 <!-- ENDE SOAPUI --> 

 

Regards, Reto

 

  • Hi Rao

    Thanks for that hint, but it's not from me.

    In the meantime I could find the required dependency entries

     

    <!-- java.lang.NoClassDefFoundError: com/btr/proxy/selector/whitelist/ProxyBypassListSelector -->

    <!-- SEE : http://smartbearsoftware.com/repository/maven2/com/btr/proxy-vole/20131209/ -->

    <dependency>

    <groupId>com.btr</groupId>

    <artifactId>proxy-vole</artifactId>

    <version>20131209</version>

    <scope>test</scope>

    </dependency>