-
-
Notifications
You must be signed in to change notification settings - Fork 678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoClassDefFoundError: org/apache/hc/core5/http/ClassicHttpRequest on WebDriverManager 5.3.2 #993
Comments
A suggestion is to add dependency on application pom This way I've resolved the issue |
@bonigarcia Will this dependency be added by a future release? |
@Mowee |
@bonigarcia Thank you for the explanation. I just thought this could be added as a dependency so that not everyone needs to add this dependency manually. But I get your point. Would be nice if they just fix it upstream. Thx for your great work. |
Got this error on WebDriverManager 5.3.2 java.lang.NoClassDefFoundError: org/apache/hc/core5/http/ClassicHttpRequest when Using Chrome 109 on windows 11
CODE
package main.java.test.java.seleniumE2E;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class ChromeTest {
static WebDriver driver;
@BeforeMethod
static void setupClass() {
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver();
}
@AfterMethod
void teardown() {
driver.quit();
}
@test
void test() {
// Exercise
driver.get("https://bonigarcia.dev/selenium-webdriver-java/");
}
}
Error Message
java.lang.NoClassDefFoundError: org/apache/hc/core5/http/ClassicHttpRequest
Caused by: java.lang.ClassNotFoundException: org.apache.hc.core5.http.ClassicHttpRequest
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 32 more
Test ignored.
===============================================
Default Suite
Total tests run: 1, Passes: 0, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 1
Process finished with exit code 0
The text was updated successfully, but these errors were encountered: