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

Windows default install of wildfly as a service starts the service in an inconsistent directory JBOSS_HOME/bin

    Details

    • Type: Enhancement
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.0.0.Final
    • Fix Version/s: None
    • Component/s: Build System, Scripts, Server
    • Labels:
      None
    • Affects:
      Documentation (Ref Guide, User Guide, etc.), Release Notes, Migration, Compatibility/Configuration

      Description

      Hi there,
      Thanks for the amazing work on Wildfly so far!
      I just ran into some configuration issue where I had to migrate a windows jboss server install to a linux one, with the files included at the root of the server working directory (java "user.dir" property).
      The issue I had was that my linux wildfly server was not finding my files in its working directory although they were exactly at the same location relative to JBOSS_HOME and my code was not using absolute path.

      After some research concerning the install scripts, I found that when installing wildfly as a service (ie. in background), each script (common.ps1, wildfly-init*.sh or service.bat) was specifying the working folder for that service.
      And the issue is that it is not consistent across all scripts... well, in fact it is almost consistent, except for the .bat script which starts the service in JBOSS_HOME/bin as its working directory whereas the others scripts starts the service in JBOSS_HOME as its working directory.

      I already located the bug at https://github.com/wildfly/wildfly-core/blob/master/core-feature-pack/src/main/resources/content/docs/contrib/scripts/service/service.bat#L525

      (the others two configurations are here :
      https://github.com/wildfly/wildfly-core/blob/master/core-feature-pack/src/main/resources/content/docs/contrib/scripts/init.d/wildfly-init-redhat.sh#L158

      and there :
      https://github.com/wildfly/wildfly-core/blob/master/core-feature-pack/src/main/resources/content/bin/common.ps1#L289
      )

      Thanks for taking this remark into account for enhanced cross-platform configuration!

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jmesnil Jeff Mesnil
                  Reporter:
                  awildflydev Wild Fly
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated: