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

Standalone.bat not support log dir with spaces in path (jboss.server.log.dir)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 1.0.0.Alpha14
    • None
    • Logging, Scripts
    • None
    • Hide

      1/ Download WildFly 8.1.0 Final for windows (zip)
      2/ Extract it to C:\wildfly-8.1.0.Final
      3/ try to start server with custom log dir containing spaces:
      C:\>start C:\wildfly-8.1.0.Final\bin\standalone.bat -Djboss.server.log.dir="C:\Program Files"

      Show
      1/ Download WildFly 8.1.0 Final for windows (zip) 2/ Extract it to C:\wildfly-8.1.0.Final 3/ try to start server with custom log dir containing spaces: C:\>start C:\wildfly-8.1.0.Final\bin\standalone.bat -Djboss.server.log.dir="C:\Program Files"

      I tried to specify a custom log folder for WildFly, by overriding property jboss.server.log.dir
      https://docs.jboss.org/author/display/WFLY8/Command+line+parameters

      But it only works for folder without space in path. The ones with space when used with "jboss.server.log.dir" will prevent wildfly from starting.

      Working:
      C:\>start C:\wildfly-8.1.0.Final\bin\standalone.bat
      C:\>start C:\wildfly-8.1.0.Final\bin\standalone.bat -Djboss.server.log.dir="C:\Windows"

      Not working (server can not start):
      C:\>start C:\wildfly-8.1.0.Final\bin\standalone.bat -Djboss.server.log.dir="C:\Program Files"

      (More info:
      JBoss AS 7.1 works:
      C:\> start C:\jboss-as-7.1.1.Final\bin\standalone.bat -Djboss.server.log.dir="C:\Program Files"

      JBoss EAP 6 and WildFly 8.0 not working either:
      C:\> start C:\jboss-eap-6.2\bin\standalone.bat -Djboss.server.log.dir="C:\Program Files"
      C:\> start C:\wildfly-8.0.0.Final\bin\standalone.bat -Djboss.server.log.dir="C:\Program Files"

      Aready tried setting jboss.server.log.dir="C:\Program Files" in JAVA_OPTS but did not work either. Should have been fixed in WFLY-1358 or WFLY-2348.
      )

              jperkins-rhn James Perkins
              ducquoc_vn Duc Quoc (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: