Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-26953

(8.0.z) Bootable jar app on Operator: No deployment content with hash yyy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 8.0 Update 2
    • None
    • BootableJar
    • None

      Bootable jar data content directory is structured like this

      [mchoma@localhost content]$ tree
      .
      └── 9f
          └── 8a8851c9a8912703943c92d8b28c47bdd61e05
              └── content
      

      Bootable jar Standalone xml is configured like this

          <deployments>
              <deployment name="bootable-jar-microprofile-config.war" runtime-name="ROOT.war">
                  <content sha1="9f8a8851c9a8912703943c92d8b28c47bdd61e05"/>
              </deployment>
          </deployments>
      

      When starting such bootable jar in openshift using Operator I get error

      17:55:19,953 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "bootable-jar-microprofile-config.war")]) - failure description: "WFLYSRV0137: No deployment content with hash 9f8a8851c9a8912703943c92d8b28c47bdd61e05 is available in the deployment content repository for deployment 'bootable-jar-microprofile-config.war'. This is a fatal boot error. To correct the problem, either restart with the --admin-only switch set and use the CLI to install the missing content or remove it from the configuration, or remove the deployment from the xml configuration file and restart."
      17:55:19,956 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details. - Server configuration file in use: standalone.xml
      17:55:19,962 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0050: JBoss EAP 8.0.0.GA (WildFly Core 21.0.5.Final-redhat-00001) stopped in 3ms
      17:55:19,965 ERROR [stderr] (main) Exception in thread "main" java.lang.reflect.InvocationTargetException
      17:55:19,965 ERROR [stderr] (main) 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      17:55:19,965 ERROR [stderr] (main) 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      17:55:19,966 ERROR [stderr] (main) 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      17:55:19,966 ERROR [stderr] (main) 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      17:55:19,966 ERROR [stderr] (main) 	at org.wildfly.core.jar.boot.Main.runBootableJar(Main.java:204)
      17:55:19,966 ERROR [stderr] (main) 	at org.wildfly.core.jar.boot.Main.main(Main.java:155)
      17:55:19,966 ERROR [stderr] (main) Caused by: java.lang.RuntimeException: WFLYJAR0017: Cannot start server
      17:55:19,966 ERROR [stderr] (main) 	at org.wildfly.bootable-jar@21.0.5.Final-redhat-00001//org.wildfly.core.jar.runtime.Server.start(Server.java:187)
      17:55:19,966 ERROR [stderr] (main) 	at org.wildfly.bootable-jar@21.0.5.Final-redhat-00001//org.wildfly.core.jar.runtime.BootableJar.run(BootableJar.java:286)
      17:55:19,966 ERROR [stderr] (main) 	at org.wildfly.bootable-jar@21.0.5.Final-redhat-00001//org.wildfly.core.jar.runtime.BootableJar.run(BootableJar.java:362)
      17:55:19,966 ERROR [stderr] (main) 	... 6 more
      17:55:19,967 ERROR [stderr] (main) Caused by: java.util.concurrent.ExecutionException: JBTHR00005: Operation failed
      17:55:19,967 ERROR [stderr] (main) 	at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:253)
      17:55:19,967 ERROR [stderr] (main) 	at org.wildfly.bootable-jar@21.0.5.Final-redhat-00001//org.wildfly.core.jar.runtime.Server.start(Server.java:168)
      17:55:19,967 ERROR [stderr] (main) 	... 8 more
      17:55:19,967 ERROR [stderr] (main) Caused by: java.lang.Exception: WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details. - Server configuration file in use: standalone.xml
      17:55:19,967 ERROR [stderr] (main) 	at org.jboss.as.server@21.0.5.Final-redhat-00001//org.jboss.as.server.ServerService.boot(ServerService.java:439)
      17:55:19,968 ERROR [stderr] (main) 	at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.AbstractControllerService.run(AbstractControllerService.java:370)
      17:55:19,968 ERROR [stderr] (main) 	at java.base/java.lang.Thread.run(Thread.java:840)
      

      Seems cause is -Djboss.server.data.dir=/opt/jboss/container/wildfly-bootable-jar-data/standalone/data is empty

      Starting the Java application using /opt/jboss/container/java/run/run-java.sh ...
      INFO exec -a "java" java -XX:MaxRAMPercentage=80.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError -cp "." -jar /deployments/ROOT.jar -Djboss.server.data.dir=/opt/jboss/container/wildfly-bootable-jar-data/standalone/data --install-dir=/opt/jboss/container/wildfly-bootable-jar-server
      

            yborgess1@redhat.com Yeray Borges Santana
            yborgess1@redhat.com Yeray Borges Santana
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: