diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 15a4e62de1..e55684d2a3 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -13006,7 +13006,7 @@ This module lays the groundwork for the other two modules.")
                                             (find-files (assoc-ref inputs input)
                                                         ".*.jar"))
                                           '("java-logback-core" "java-slf4j-api"
-                                            "java-commons-compiler" "servlet"
+                                            "java-commons-compiler" "java-javaee-servletapi"
                                             "groovy")))
                        ":"))
              (apply invoke "groovyc" "-d" "build/classes" "-j"