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

Karaf Server can't start if space in path (KARAF_HOME)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 4.3.3
    • 4.4.0, 4.3.4, 4.2.16
    • karaf
    • None
    • Java 11

      4.3.3

      Karaf is installed under eg. C:\Program Files\Karaf

    Description

      Recent commit in  karaf.bat https://github.com/apache/karaf/commit/33174f7c6980795de9829b42f98d8b9903948f6f

      caused our Karaf can't start.

      If space in %KARAF_HOME% and Java Version > 8

      WARNING: package org.apache.karaf.specs.locator not in java.base
      Error: Could not find or load main class Files\Karaf
      Caused by: java.lang.ClassNotFoundException: Files\Karaf

      Solutions for us:

      --patch-module java.base="%KARAF_HOME%\lib\endorsed\org.apache.karaf.specs.locator-4.3.3.jar" ^
      --patch-module java.xml="%KARAF_HOME%\lib\endorsed\org.apache.karaf.specs.java.xml-4.3.3.jar" ^
      

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            annorchen annor
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: