The Java example fails as it is generating a JAR file with dependencies (Uber JAR) and the Java pack's Docker file uses the first JAR file that it find i.e. the JAR file without dependencies. The result is that when the container runs a ClassNotFound exception is raised due to the Spark web frameworks classes not being in the JAR file.
The Java example fails as it is generating a JAR file with dependencies (Uber JAR) and the Java pack's Docker file uses the first JAR file that it find i.e. the JAR file without dependencies. The result is that when the container runs a ClassNotFound exception is raised due to the Spark web frameworks classes not being in the JAR file.