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

[QE](8.0.z) Starting with relative path to standalone xml config fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 8.0.0.GA
    • Scripts, Server
    • None
    • False
    • None
    • False
    • Hide

      Unzip jboss-eap-8.0.0.zip and run:

      $ ./jboss-eap-8.0/bin/standalone.sh -c ../../docs/examples/configs/standalone-xts.xml
      =========================================================================
      
        JBoss Bootstrap Environment
      
        JBOSS_HOME: /home/mnovak/tmp/jboss-eap-8.0
      
        JAVA: /home/mnovak/Downloads/jdk-17/bin/java
      
        JAVA_OPTS:  -Xlog:gc*:file="/home/mnovak/tmp/jboss-eap-8.0/standalone/log/gc.log":time,uptimemillis:filecount=5,filesize=3M -Djdk.serialFilter="maxbytes=10485760;maxdepth=128;maxarray=100000;maxrefs=300000" -Xms1303m -Xmx1303m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true  --add-exports=java.desktop/sun.awt=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.url.ldap=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.url.ldaps=ALL-UNNAMED --add-exports=jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.naming/javax.naming=ALL-UNNAMED -Djava.security.manager=allow
      
      =========================================================================
      
      09:51:56,091 INFO  [org.jboss.modules] (main) JBoss Modules version 2.1.0.Final-redhat-00001
      java.lang.IllegalStateException: WFLYCTL0214: Could not load configuration file: ../../docs/examples/configs/standalone-xts.xml. The configuration file argument must specify the path to a file located in the configuration directory. The path must be a relative path, and must be relative to the configuration directory /home/mnovak/tmp/jboss-eap-8.0/standalone/configuration.
      	at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.persistence.ConfigurationFile.determineMainFile(ConfigurationFile.java:387)
      	at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.persistence.ConfigurationFile.<init>(ConfigurationFile.java:207)
      	at org.jboss.as.server@21.0.5.Final-redhat-00001//org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:508)
      	at org.jboss.as.server@21.0.5.Final-redhat-00001//org.jboss.as.server.Main.determineEnvironment(Main.java:416)
      	at org.jboss.as.server@21.0.5.Final-redhat-00001//org.jboss.as.server.Main.main(Main.java:96)
      	at org.jboss.modules.Module.run(Module.java:353)
      	at org.jboss.modules.Module.run(Module.java:321)
      	at org.jboss.modules.Main.main(Main.java:604)
      09:51:56,240 FATAL [org.jboss.as.server] (main) WFLYSRV0239: Aborting with exit code 1
      
      Show
      Unzip jboss-eap-8.0.0.zip and run: $ ./jboss-eap-8.0/bin/standalone.sh -c ../../docs/examples/configs/standalone-xts.xml ========================================================================= JBoss Bootstrap Environment JBOSS_HOME: /home/mnovak/tmp/jboss-eap-8.0 JAVA: /home/mnovak/Downloads/jdk-17/bin/java JAVA_OPTS: -Xlog:gc*:file= "/home/mnovak/tmp/jboss-eap-8.0/standalone/log/gc.log" :time,uptimemillis:filecount=5,filesize=3M -Djdk.serialFilter= "maxbytes=10485760;maxdepth=128;maxarray=100000;maxrefs=300000" -Xms1303m -Xmx1303m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack= true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless= true --add-exports=java.desktop/sun.awt=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.url.ldap=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.url.ldaps=ALL-UNNAMED --add-exports=jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.naming/javax.naming=ALL-UNNAMED -Djava.security.manager=allow ========================================================================= 09:51:56,091 INFO [org.jboss.modules] (main) JBoss Modules version 2.1.0.Final-redhat-00001 java.lang.IllegalStateException: WFLYCTL0214: Could not load configuration file: ../../docs/examples/configs/standalone-xts.xml. The configuration file argument must specify the path to a file located in the configuration directory. The path must be a relative path, and must be relative to the configuration directory /home/mnovak/tmp/jboss-eap-8.0/standalone/configuration. at org.jboss.as.controller@21.0.5.Final-redhat-00001 //org.jboss.as.controller.persistence.ConfigurationFile.determineMainFile(ConfigurationFile.java:387) at org.jboss.as.controller@21.0.5.Final-redhat-00001 //org.jboss.as.controller.persistence.ConfigurationFile.<init>(ConfigurationFile.java:207) at org.jboss.as.server@21.0.5.Final-redhat-00001 //org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:508) at org.jboss.as.server@21.0.5.Final-redhat-00001 //org.jboss.as.server.Main.determineEnvironment(Main.java:416) at org.jboss.as.server@21.0.5.Final-redhat-00001 //org.jboss.as.server.Main.main(Main.java:96) at org.jboss.modules.Module.run(Module.java:353) at org.jboss.modules.Module.run(Module.java:321) at org.jboss.modules.Main.main(Main.java:604) 09:51:56,240 FATAL [org.jboss.as.server] (main) WFLYSRV0239: Aborting with exit code 1

      When starting EAP with config specified by relative path like:

      ./jboss-eap-8.0/bin/standalone.sh -c ../../docs/examples/configs/standalone-jts.xml
      

      then it fails with:

      09:54:31,565 INFO  [org.jboss.modules] (main) JBoss Modules version 2.1.0.Final-redhat-00001
      java.lang.IllegalStateException: WFLYCTL0214: Could not load configuration file: ../../docs/examples/configs/standalone-jts.xml. The configuration file argument must specify the path to a file located in the configuration directory. The path must be a relative path, and must be relative to the configuration directory /home/mnovak/tmp/jboss-eap-8.0/standalone/configuration.
      	at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.persistence.ConfigurationFile.determineMainFile(ConfigurationFile.java:387)
      	at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.persistence.ConfigurationFile.<init>(ConfigurationFile.java:207)
      	at org.jboss.as.server@21.0.5.Final-redhat-00001//org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:508)
      	at org.jboss.as.server@21.0.5.Final-redhat-00001//org.jboss.as.server.Main.determineEnvironment(Main.java:416)
      	at org.jboss.as.server@21.0.5.Final-redhat-00001//org.jboss.as.server.Main.main(Main.java:96)
      	at org.jboss.modules.Module.run(Module.java:353)
      	at org.jboss.modules.Module.run(Module.java:321)
      	at org.jboss.modules.Main.main(Main.java:604)
      09:54:31,713 FATAL [org.jboss.as.server] (main) WFLYSRV0239: Aborting with exit code 1
      

      There is the same failure on EAP 7.4.17 but works with EAP 7.4.0.

              Unassigned Unassigned
              mnovak1@redhat.com Miroslav Novak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: