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

Use configured Java path to startup wrapper

    Details

    • Type: Wish
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.3
    • Fix Version/s: 4.1.0, 3.0.6, 4.0.5
    • Component/s: None
    • Labels:
      None

      Description

      I stumbled across the following situation. A windows Server 2012 R2 installed a JDK7 with a public JRE (http://stackoverflow.com/questions/21412853/java-windows7-system32-folder-java-exe).

      Now, I tried to install a karaf with a provided jdk 8. Starting this via the command line worked fine. After the first start I installed the service-wrapper, so far so good. But starting the server via the windows server brought me some trouble, because JRE 7 had been used to startup.

      First I didn't understand why, because in the wrapper.conf the correct path to karaf/opt/jdk was configured. But then I found this "By default, the wrapper sets the JAVA_HOME in etc/karaf-wrapper.conf file. However, the bin/karaf-service script uses java. If required, you have to define the JAVA_HOME in this bin/karaf-service script." I found this sentence in section "Configuration Hint" version 2.3 and it helped me a lot.

      So my wish is, either add this sentence to the current documentation, also. Or much better use the configured Java path within wrapper.conf to startup the service.

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              ChristianLutz Christian Lutz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: