Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3136

Karaf can't start if you have whitespaces in brackets in JAVA_OPTS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Won't Fix
    • 2.3.1, 3.0.1
    • 2.4.2, 3.0.4, 2.3.11, 4.0.0.M3
    • karaf
    • None
    • Windows 7

    Description

      If you set java option in setenv.bat with whitespaces, inserted between double-quotation symobols like this:
      set JAVA_OPTS=%JAVA_OPTS% -Dlog4j.configuration="C:\programm files\karaf\etc\log4j.properties"

      You'll get error on startup
      files\karaf\etc\log4j.properties" " was unexpected at this time.

      This goes from karaf.bat line:
      if "%JAVA_OPTS%" == "" set JAVA_OPTS=%DEFAULT_JAVA_OPTS%

      quote symbols wrongly associated in "%JAVA_OPTS%" during script execution

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            Abk1024 Abakumov Konstantin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified