Problem integrating JbpmJUnitBaseTestCase in 6.2
kevinprendergast Aug 16, 2015 9:12 PMGetting going with jbpm6.2 installer. A basic project working OK between JBPM Console and Eclipse via git repo. Using JDK1.7
Problem: when introducing a test class to the jbpm project using the helper JbpmJUnitBaseTestCase I introduce the maven dependency to jbpm-test in the project's pom.
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-test</artifactId>
<version>6.2.0.Final</version>
</dependency>
The test case works fine under Eclipse, but across in the Console there are a bunch of compile errors in the Project Editor...
Verification of class org.eclipse.jdt.core.BuildJarIndex failed and will not be available for authoring. Please check the necessary external dependencies for this project are configured correctly
Verification of class org.eclipse.jdt.core.CheckDebugAttributes failed and will not be available for authoring. Please check the necessary external dependencies for this project are configured correctly.
Verification of class org.eclipse.jdt.core.JDTCompilerAdapter$1 failed and will not be available for authoring. Please check the necessary external dependencies for this project are configured correctly.
+ more
When I look in the server log file I deduce that the JBPM builder isn't resolving the dependencies of jbpm-test.
I would summarise the error log ...
WARN [org.jboss.modules] (EJB default - 4) Failed to define class org.eclipse.jdt.core.BuildJarIndex in Module "io.undertow.jsp:main" from local module loader @2b29f6e7 (finder: local module finder @5010cdd4 (roots: C:\java_fun\jbpm-6.2.0.Final-installer-full\jbpm-installer\wildfly-8.1.0.Final\modules,C:\java_fun\jbpm-6.2.0.Final-installer-full\jbpm-installer\wildfly-8.1.0.Final\modules\system\layers\base)): java.lang.LinkageError: Failed to link org/eclipse/jdt/core/BuildJarIndex (Module "io.undertow.jsp:main" from local module loader @2b29f6e7 (finder: local module finder @5010cdd4 (roots: C:\java_fun\jbpm-6.2.0.Final-installer-full\jbpm-installer\wildfly-8.1.0.Final\modules,C:\java_fun\jbpm-6.2.0.Final-installer-full\jbpm-installer\wildfly-8.1.0.Final\modules\system\layers\base)))
Caused by: java.lang.NoClassDefFoundError: org/apache/tools/ant/Task
Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.Task from [Module "io.undertow.jsp:main" from local module loader @2b29f6e7 (finder: local module finder @5010cdd4 (roots: C:\java_fun\jbpm-6.2.0.Final-installer-full\jbpm-installer\wildfly-8.1.0.Final\modules,C:\java_fun\jbpm-6.2.0.Final-installer-full\jbpm-installer\wildfly-8.1.0.Final\modules\system\layers\base))]
... and more ...
Caused by: java.lang.NoClassDefFoundError: javax/swing/tree/TreeModel
Caused by: java.lang.ClassNotFoundException: javax.swing.tree.TreeModel from [Module "org.antlr:main" from local module loader @2b29f6e7 (finder: local module finder @5010cdd4 (roots: C:\java_fun\jbpm-6.2.0.Final-installer-full\jbpm-installer\wildfly-8.1.0.Final\modules,C:\java_fun\jbpm-6.2.0.Final-installer-full\jbpm-installer\wildfly-8.1.0.Final\modules\system\layers\base))]
I know I've done something stupid - but I'm proving too stupid to spot it.
Help appreciated.
KP