You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/02/08 17:01:40 UTC

[jira] [Commented] (KARAF-3853) Use configured Java path to startup wrapper

    [ https://issues.apache.org/jira/browse/KARAF-3853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15137125#comment-15137125 ] 

ASF subversion and git services commented on KARAF-3853:
--------------------------------------------------------

Commit d167e886e1b8b71b4722ebae8e0dc4e6a2379817 in karaf's branch refs/heads/master from [~jbonofre]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=d167e88 ]

KARAF-3853 - Set JAVA_HOME in bin/karaf-service wrapper


> Use configured Java path to startup wrapper
> -------------------------------------------
>
>                 Key: KARAF-3853
>                 URL: https://issues.apache.org/jira/browse/KARAF-3853
>             Project: Karaf
>          Issue Type: Wish
>    Affects Versions: 3.0.3
>            Reporter: Christian Lutz
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.1.0, 3.0.6, 4.0.5
>
>
> 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.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)