Closed githubj21 closed 1 year ago
net.serenity-bdd.serenity-jbehave.1.46.0 is refer to the net.serenity-bdd.serenity-core.2.0.48 that is the issue, we need new version of net.serenity-bdd.serenity-jbehave that support net.serenity-bdd.serenity-core.4.0.0+ version
JBehave is no longer supported.
What happened?
java.lang.NoClassDefFoundError: net/serenitybdd/core/exceptions/SerenityManagedException
Caused by: java.lang.ClassNotFoundException: net.serenitybdd.core.exceptions.SerenityManagedException 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) ... 17 more
What did you expect to happen?
SerenityManagedException class is part of the package net.serenitybdd.model.exceptions but some where in the code it is referred in the package net.serenitybdd.core.exceptions that where NoClassDefFoundError exception thrown
It is blocker as we are not able to move with the build due to this issue.
Issue at run time asap classes start loading, may be issue with the version of the files
Serenity BDD version
4.0.4
JDK version
java version "17.0.8" 2023-07-18 LTS
Execution environment
Windows 10 Enterprise, issue at run time at class loading browser not open by that time
How to reproduce the bug.
Can not share the git but here is pom file, that should help you -
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
How can we make it happen?
Add it to the Serenity BDD backlog and wait for a volunteer to pick it up