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

(7.1.0) Embedded server started non-modular use only first --jboss-home for FS paths

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.1.0.DR2
    • 7.1.0.DR1
    • CLI, Management
    • None
    • Regression

      First --jboss-home value passed is always used to FS paths resolution. The issue affects embed-server started using jboss-cli-client.jar.

      reproduce
      start embed server using eap1, stop it, start another embed server using eap2

      /home/pkremens/workspace3
      ├── eap1
      │   └── jboss-eap-7.1
      └── eap2
          └── jboss-eap-7.1
      
      [pkremens@dhcp-10-40-5-78 client]$ pwd ; java -jar jboss-cli-client.jar 
      /home/pkremens/workspace3/eap1/jboss-eap-7.1/bin/client
      [disconnected /] embed-server --jboss-home=~/workspace3/eap1/jboss-eap-7.1 
      [standalone@embedded /] stop-embedded-server 
      [disconnected /] embed-server --jboss-home=~/workspace3/eap2/jboss-eap-7.1
      

      actual
      eap1 is used

      ...
                      "name" => "jboss.server.config.dir",
                      "path" => "/home/pkremens/workspace3/eap1/jboss-eap-7.1/standalone/configuration",
      ...
      

      Full output - only jboss.home.dir reflects a new jboss-home
      expected (7.0.0 behaviour)
      eap2 is used

      ...
                      "name" => "jboss.server.config.dir",
                      "path" => "/home/pkremens/workspace3/eap2/jboss-eap-7.1/standalone/configuration",
      ...
      

      Setting priority to Blocker since this is a regression against 7.0.0

            kwills@redhat.com Ken Wills
            pkremens@redhat.com Petr Kremensky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: