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

Feature service-wrapper creates invalid SERVICENAME-wrapper.conf file

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.5
    • Fix Version/s: 4.1.0, 4.0.6
    • Component/s: karaf
    • Labels:
      None
    • Environment:

      Windows KARAF_BASE defined to be outside of KARAF_HOME hierarchy.

      Description

      Note: KARAF_BASE is defined to be outside the KARAF_HOME hierarchy.

      After installing service-wrapper, ran wrapper:install command per the docs. That worked fine. When we tried to start the service though it failed. Upon review, I saw that the

      {service-name}

      -wrapper.conf file had the following lines in it. This file is created under KARAF_BASE/etc.

      wrapper.java.classpath.2=%KARAF_HOME%/lib/wrapper/*.jar
      wrapper.java.library.path.1=%KARAF_HOME%/lib/wrapper/

      Replacing KARAF_HOME with KARAF_BASE as shown below allowed the service to start.

      wrapper.java.classpath.2=%KARAF_BASE%/lib/wrapper/*.jar
      wrapper.java.library.path.1=%KARAF_BASE%/lib/wrapper/

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              scott.y Scott Leschke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: