Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6789

Bootable JAR cannot start when jboss.server.data.dir is specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 24.0.0.Final
    • None
    • Bootable JAR
    • None

      jboss.server.data.dir can be used to configure the server data dir, however when a Bootable JAR is launched with this configuration, the deployment fails with the following error:

      $ java -jar ./target/microprofile-config-bootable.jar \                                                                                                                                                                                                              1 ↵
      -Djboss.server.data.dir=/tmp/bootable-jar-work-dir/wildfly-bootable-jar-data
      17:20:34,120 INFO  [org.wildfly.jar] (main) WFLYJAR0007: Installed server and application in /tmp/wildfly-bootable-server7284345250495719046, took 538ms
      17:20:34,243 INFO  [org.wildfly.jar] (main) WFLYJAR0008: Server options: [-Djboss.server.data.dir=/tmp/bootable-jar-work-dir/wildfly-bootable-jar-data, --read-only-server-config=standalone.xml]
      17:20:34,258 INFO  [org.jboss.msc] (main) JBoss MSC version 1.5.2.Final
      17:20:34,260 INFO  [org.jboss.threads] (main) JBoss Threads version 2.4.0.Final
      17:20:34,287 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: WildFly Full 31.0.0.Final (WildFly Core 23.0.1.Final) starting
      17:20:34,437 INFO  [org.wildfly.security] (ServerService Thread Pool -- 16) ELY00001: WildFly Elytron version 2.2.3.Final
      17:20:34,566 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "microprofile-config.war")]) - failure description: "WFLYSRV0137: No deployment content with hash da7d273fa8e4e37501b657a876c960182f705283 is available in the deployment content repository for deployment '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:20:34,568 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:20:34,571 INFO  [org.jboss.as] (MSC service thread 1-8) WFLYSRV0050: WildFly Full 31.0.0.Final (WildFly Core 23.0.1.Final) stopped in 2ms
      17:20:34,572 ERROR [stderr] (main) Exception in thread "main" java.lang.reflect.InvocationTargetException
      17:20:34,572 ERROR [stderr] (main) 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
      17:20:34,572 ERROR [stderr] (main) 	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      17:20:34,573 ERROR [stderr] (main) 	at org.wildfly.core.jar.boot.Main.runBootableJar(Main.java:192)
      17:20:34,573 ERROR [stderr] (main) 	at org.wildfly.core.jar.boot.Main.main(Main.java:143)
      17:20:34,573 ERROR [stderr] (main) Caused by: java.lang.RuntimeException: WFLYJAR0017: Cannot start server
      17:20:34,573 ERROR [stderr] (main) 	at org.wildfly.bootable-jar@23.0.1.Final//org.wildfly.core.jar.runtime.Server.start(Server.java:184)
      17:20:34,573 ERROR [stderr] (main) 	at org.wildfly.bootable-jar@23.0.1.Final//org.wildfly.core.jar.runtime.BootableJar.run(BootableJar.java:274)
      17:20:34,573 ERROR [stderr] (main) 	at org.wildfly.bootable-jar@23.0.1.Final//org.wildfly.core.jar.runtime.BootableJar.run(BootableJar.java:350)
      17:20:34,573 ERROR [stderr] (main) 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      17:20:34,574 ERROR [stderr] (main) 	... 3 more
      17:20:34,574 ERROR [stderr] (main) Caused by: java.util.concurrent.ExecutionException: JBTHR00005: Operation failed
      17:20:34,574 ERROR [stderr] (main) 	at org.jboss.threads@2.4.0.Final//org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:253)
      17:20:34,574 ERROR [stderr] (main) 	at org.wildfly.bootable-jar@23.0.1.Final//org.wildfly.core.jar.runtime.Server.start(Server.java:167)
      17:20:34,574 ERROR [stderr] (main) 	... 6 more
      17:20:34,574 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:20:34,574 ERROR [stderr] (main) 	at org.jboss.as.server@23.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:427)
      17:20:34,574 ERROR [stderr] (main) 	at org.jboss.as.controller@23.0.1.Final//org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:362)
      17:20:34,574 ERROR [stderr] (main) 	at java.base/java.lang.Thread.run(Thread.java:1570)
      
      

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

                Created:
                Updated:
                Resolved: