You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mladen Turk (JIRA)" <ji...@apache.org> on 2013/03/06 11:42:13 UTC

[jira] [Resolved] (DAEMON-278) procrunsrv windows ++Environment doesn't work for java type

     [ https://issues.apache.org/jira/browse/DAEMON-278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mladen Turk resolved DAEMON-278.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.14

Fixed in the svn (r1453275) by calling setInprocEnvironment for non-JNI startup as well.
                
> procrunsrv windows ++Environment doesn't work for java type
> -----------------------------------------------------------
>
>                 Key: DAEMON-278
>                 URL: https://issues.apache.org/jira/browse/DAEMON-278
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>    Affects Versions: 1.0.13
>         Environment: Windows XP 32bits
>            Reporter: Eric Le Lay
>              Labels: environment, windows
>             Fix For: 1.0.14
>
>
> When starting a service using the 'java' method, the Environment variables are not applied to the child process.
> looking at serviceStart() in prunsrv.c, the Environment variables are applied (call to setInprocEnvironment) in the JNI case, but there is missing something similar for the other case ('java' or 'native').
> An easy fix would be to set the environment variables in the wrapper so that they are inherited by the child process. Maybe you want to set them only in the child process, but I don't know how...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira