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

Spaces in the path stored in KARAF_ETC will prohibit service start-up

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.3
    • 4.3.0, 4.2.5
    • karaf

    Description

      A space in the KARAF_ETC environment variable will cause problems at least under MS Windows, because the entry

      wrapper.java.additional.11=-Djava.util.logging.config.file=%KARAF_ETC%/java.util.logging.properties

      **is missing double quotes at least around %KARAF_ETC%.

      The wrapper.log shows this:

       

      INFO   | jvm 1    | 2019/03/08 02:06:13 | Error: Could not find or load main class Files\foo\karaf\bin\..\etc.java.util.logging.properties
      
      ERROR  | wrapper  | 2019/03/08 02:06:13 | JVM exited while loading the application.
      

       

      Changing the entry to

      wrapper.java.additional.11=-Djava.util.logging.config.file="%KARAF_ETC%/java.util.logging.properties"

      fixes the issue.

      What irritates me still, ist the dot (".") between "etc" and "java.util...." in the log message, but as I said, the double quotes around the complete entry fixed it.

      This is can happen under MS Windows if the Karaf service is installed below the default "C:\Program Files\..." directory.

      We have not found a hint from the service wrapper documentation how to fix this via configuration.

       

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              c.bruessow@cenit.de Christian Brüssow
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: