]
Pedro Ruivo updated ISPN-12317:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
WildFly modules integration tests do not start after surefire
3.0.0-M5 upgrade
------------------------------------------------------------------------------
Key: ISPN-12317
URL:
https://issues.redhat.com/browse/ISPN-12317
Project: Infinispan
Issue Type: Bug
Components: Build, Test Suite
Affects Versions: 12.0.0.Dev03
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Critical
Labels: testsuite_stability
Fix For: 12.0.0.Dev04
The {{integrationtests/server-integration/wildfly-modules}} tests do not start because of
a {{NoClassDefFoundError}}:
{noformat}
./integrationtests/server-integration/wildfly-modules/target/failsafe-reports/2020-09-07T07-11-49_195-jvmRun1.dump
# Created at 2020-09-07T07:24:46.704
java.lang.NoClassDefFoundError:
org/infinispan/test/integration/as/client/AbstractHotRodClientIT
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1096)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:206)
at
java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:759)
at
java.base/jdk.internal.loader.BuiltinClassLoader.findClassInModuleOrNull(BuiltinClassLoader.java:680)
at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:605)
at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
at
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at
org.apache.maven.surefire.api.util.DefaultScanResult.loadClass(DefaultScanResult.java:136)
at
org.apache.maven.surefire.api.util.DefaultScanResult.applyFilter(DefaultScanResult.java:100)
at
org.apache.maven.surefire.junitcore.JUnitCoreProvider.scanClassPath(JUnitCoreProvider.java:292)
at
org.apache.maven.surefire.junitcore.JUnitCoreProvider.setTestsToRun(JUnitCoreProvider.java:198)
at
org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:132)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
Caused by: java.lang.ClassNotFoundException:
org.infinispan.test.integration.as.client.AbstractHotRodClientIT
at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 19 more
{noformat}
Further investigation shows that {{AbstractHotRodClientIT}} does exist on the classpath,
but the classloader is trying to load it from the wrong jar:
{{infinispan-wildfly-module-integrationtests-12.0.0-SNAPSHOT.jar}}