Please help to resolve this error while trying to create a new instance of BMP --- java.lang.NoClassDefFoundError: net/lightbody/bmp/mitm/CertificateAndKeySource

58 views
Skip to first unread message

Sindhu Anand

unread,
Jul 16, 2020, 8:11:27 AM7/16/20
to BrowserMob Proxy
Obtaining below
java.lang.NoClassDefFoundError: net/lightbody/bmp/mitm/CertificateAndKeySource

When I tried to create a new instance of bmp proxy

BrowserMobProxyServer proxy = null;

                                     // start the proxy
proxy = new BrowserMobProxyServer();
    proxy.start(0);

    // get the Selenium proxy object
    Proxy seleniumProxy = ClientUtil.createSeleniumProxy(proxy);

....
...
..


Obtianing the error when I create a new BrowserMobProxyServer.
I have the below maven 

<dependency>
<groupId>net.lightbody.bmp</groupId>
    <artifactId>browsermob-core</artifactId>
            <version>2.1.5</version>
</dependency>


<dependency>
    <groupId>org.littleshoot</groupId>
    <artifactId>littleproxy</artifactId>
    <version>1.1.0</version>
    <scope>test</scope>
</dependency>


Please help

Reply all
Reply to author
Forward
0 new messages