Run glassfish tests with headless
MODIFY
instrumentation/servlet/glassfish-testing/glassfish-testing.gradle
instrumentation/servlet/glassfish-testing/glassfish-testing.gradle
@@ -12,3 +12,7 @@ dependencies {
testLibrary group: 'org.glassfish.main.extras', name: 'glassfish-embedded-all', version: '4.0'
}
+
+tasks.withType(Test) {
+ jvmArgs "-Djava.awt.headless=true"
+}

Run glassfish tests with headless (#2781)