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

Service wrapper should use and populate JAVA_HOME in conf file

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.10, 2.3.1, 3.0.0.RC1, 3.0.0
    • Component/s: karaf
    • Labels:
      None

      Description

      Now, when installing the service wrapper, it doesn't define the JAVA_HOME (defined in System properties) in etc/karaf-wrapper.conf.

      If the problem doesn't have JAVA_HOME defined at startup (in runlevel), we may encounter issue like security exception (around key negotiation).

      As the JAVA_HOME is known during the installation of the service wrapper, it makes sense to use it in etc/karaf-wrapper.conf like:

      set.default.JAVA_HOME=/java/path
      set.default.KARAF_HOME=/foobar
      set.default.KARAF_BASE=/foobar
      set.default.KARAF_DATA=/foobar/data

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              jbonofre Jean-Baptiste Onofré
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: