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

Duplicated jboss.server.base.dir configuration property when server is started with -Djboss.server.base.dir

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 8.1.0.GA
    • 8.1.0.Beta
    • Scripts
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide

      1. Launch the server with:

      $JBOSS_HOME/standalone.sh -Djboss.server.base.dir=$JBOSS_HOME/standalone
      

      2. Verify the launch command contains two jboss.server.base.dir properties with the same value

      $ ps -fea | grep -v grep | grep Standalone | grep jboss.server.base.dir
      yborgess  129874  129705 99 13:19 pts/2    00:00:07 /home/yborgess/.sdkman/candidates/java/current/bin/java -D[Standalone] -Xlog:gc*:file=/home/yborgess/dev/servers/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 -Dorg.jboss.boot.log.file=/home/yborgess/dev/servers/jboss-eap-8.0/standalone/log/server.log -Dlogging.configuration=file:/home/yborgess/dev/servers/jboss-eap-8.0/standalone/configuration/logging.properties -jar /home/yborgess/dev/servers/jboss-eap-8.0/jboss-modules.jar -mp /home/yborgess/dev/servers/jboss-eap-8.0/modules org.jboss.as.standalone -Djboss.home.dir=/home/yborgess/dev/servers/jboss-eap-8.0 -Djboss.server.base.dir=/home/yborgess/dev/servers/jboss-eap-8.0/standalone -Djboss.server.base.dir=/home/yborgess/dev/servers/jboss-eap-8.0/standalone
      
      Show
      1. Launch the server with: $JBOSS_HOME/standalone.sh -Djboss.server.base.dir=$JBOSS_HOME/standalone 2. Verify the launch command contains two jboss.server.base.dir properties with the same value $ ps -fea | grep -v grep | grep Standalone | grep jboss.server.base.dir yborgess 129874 129705 99 13:19 pts/2 00:00:07 /home/yborgess/.sdkman/candidates/java/current/bin/java -D[Standalone] -Xlog:gc*:file=/home/yborgess/dev/servers/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 -Dorg.jboss.boot.log.file=/home/yborgess/dev/servers/jboss-eap-8.0/standalone/log/server.log -Dlogging.configuration=file:/home/yborgess/dev/servers/jboss-eap-8.0/standalone/configuration/logging.properties -jar /home/yborgess/dev/servers/jboss-eap-8.0/jboss-modules.jar -mp /home/yborgess/dev/servers/jboss-eap-8.0/modules org.jboss.as.standalone -Djboss.home.dir=/home/yborgess/dev/servers/jboss-eap-8.0 -Djboss.server.base.dir=/home/yborgess/dev/servers/jboss-eap-8.0/standalone -Djboss.server.base.dir=/home/yborgess/dev/servers/jboss-eap-8.0/standalone

      When the server is started with -Djboss.server.base.dir, the property is configured twice for the server launch command.

      This is completely harmless for the server behaviour since the server can process the expected jboss.server.base.dir value even if it is duplicated in the launch command; hence, the resolution of this issue is minor.

      The only possible side effect is if a user application code is trying to read this property from the server environment and somehow it is not prepared to handle the read when this property is deuplicated.

      Fixing this will probably require detecting the condition in the standalone.sh script. Other scripts could be affected by the same issue.

              lvydra Lukas Vydra
              yborgess1@redhat.com Yeray Borges Santana
              Marek Kopecky Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: