-
Task
-
Resolution: Done
-
Major
-
None
The exception thrown is
java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
Reproducer from qa folder:
rm ext/*jar
mvn clean install
ant
ant -f run-tests.xml junit-testsuite -Dcode.coverage=true
ant -f run-tests.xml jacoco-report -v
I think the fix would be to add the asm groupId into the list of group IDs that will be copied in https://github.com/jbosstm/narayana/blob/main/qa/pom.xml#L246.
BUILD FAILED <REDACT>/qa/run-tests.xml:561: java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1022) at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1172) at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1340) at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1392) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1357) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1112) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) at org.jacoco.ant.ReportTask.createBundle(ReportTask.java:566) at org.jacoco.ant.ReportTask.createReport(ReportTask.java:545) at org.jacoco.ant.ReportTask.execute(ReportTask.java:496) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299) at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) at org.apache.tools.ant.Task.perform(Task.java:350) at org.apache.tools.ant.Target.execute(Target.java:449) at org.apache.tools.ant.Target.performTasks(Target.java:470) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401) at org.apache.tools.ant.Project.executeTarget(Project.java:1374) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1264) at org.apache.tools.ant.Main.runBuild(Main.java:818) at org.apache.tools.ant.Main.startAnt(Main.java:223) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101) Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1402) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1357) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1112) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) ... 27 more
Additionally the build should fail if an exception is thrown.
- causes
-
JBTM-3858 Re-enable TOMCAT_TESTS for JACOCO PROFILE if disabled
- Closed