-
Bug
-
Resolution: Done
-
Major
-
JAVA8 1.6.0.GA, JAVA11 1.0.0.GA
-
None
-
None
Steps to reproduce the problem
oc new-project demo oc import-image openjdk-11-rhel7 --from=registry.access.redhat.com/openjdk/openjdk-11-rhel7 --confirm -n openshift git@github.com:snowdrop/spring-boot-http-booster.git && cd spring-boot-http-booster git checkout sb-2.1.x oc get is/openjdk-11-rhel7 -n openshift copy/paste the DOCKER REPO within the xml tags of the pom.xml <fabric8.generator.from> docker-registry.default.svc:5000/openshift/openjdk-11-rhel7 </fabric8.generator.from> mvn clean package fabric8:deploy -Popenshift Check pod log tarting the Java application using /opt/jboss/container/java/run/run-java.sh ... ERROR Neither $JAVA_MAIN_CLASS nor $JAVA_APP_JAR is set and 0 JARs found in /deployments (1 expected) INFO exec java -javaagent:/opt/jboss/container/jolokia/jolokia.jar=config=/opt/jboss/container/jolokia/etc/jolokia.properties -XX:+UseParallelOldGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MaxMetaspaceSize=100m -XX:+ExitOnOutOfMemoryError -cp "." -jar Error: -jar requires jar file specification Usage: java [options] <mainclass> [args...] (to execute a class) or java [options] -jar <jarfile> [args...] (to execute a jar file) or java [options] -m <module>[/<mainclass>] [args...] java [options] --module <module>[/<mainclass>] [args...] (to execute the main class in a module) or java [options] <sourcefile> [args] (to execute a single source-file program)