Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-3095

S2I artefact copy fails for binary-only S2I build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JAVA8 1.6.0.GA, JAVA11 1.0.0.GA
    • None
    • None
    • SB-2019-02-10

      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)
      

        1. Screenshot 2019-02-07 15.29.52.png
          174 kB
          Charles Moulliard
        2. Screenshot 2019-02-07 16.27.12.png
          293 kB
          Charles Moulliard

              jdowland@redhat.com Jonathan Dowland
              cmoullia Charles Moulliard
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: