-
Bug
-
Resolution: Done
-
Blocker
-
None
-
None
-
False
-
None
-
False
-
-
-
-
-
-
+
-
-
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
[0m[31m17: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." [0m[31m17: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 [0m[0m17: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 [0m[31m17:55:19,965 ERROR [stderr] (main) Exception in thread "main" java.lang.reflect.InvocationTargetException [0m[31m17:55:19,965 ERROR [stderr] (main) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [0m[31m17:55:19,965 ERROR [stderr] (main) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) [0m[31m17:55:19,966 ERROR [stderr] (main) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [0m[31m17:55:19,966 ERROR [stderr] (main) at java.base/java.lang.reflect.Method.invoke(Method.java:568) [0m[31m17:55:19,966 ERROR [stderr] (main) at org.wildfly.core.jar.boot.Main.runBootableJar(Main.java:204) [0m[31m17:55:19,966 ERROR [stderr] (main) at org.wildfly.core.jar.boot.Main.main(Main.java:155) [0m[31m17:55:19,966 ERROR [stderr] (main) Caused by: java.lang.RuntimeException: WFLYJAR0017: Cannot start server [0m[31m17: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) [0m[31m17: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) [0m[31m17: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) [0m[31m17:55:19,966 ERROR [stderr] (main) ... 6 more [0m[31m17:55:19,967 ERROR [stderr] (main) Caused by: java.util.concurrent.ExecutionException: JBTHR00005: Operation failed [0m[31m17:55:19,967 ERROR [stderr] (main) at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:253) [0m[31m17: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) [0m[31m17:55:19,967 ERROR [stderr] (main) ... 8 more [0m[31m17: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 [0m[31m17: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) [0m[31m17: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) [0m[31m17: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
- blocks
-
JBEAP-26918 Bootable jar app on Operator: No deployment content with hash yyy
- Closed
- is cloned by
-
WFCORE-6789 Bootable JAR cannot start when jboss.server.data.dir is specified
- Resolved
- is incorporated by
-
JBEAP-26812 (8.0.z) Upgrade WildFly Core from 21.0.7.Final-redhat-00001 to 21.0.9.Final-redhat-00001
- Closed