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

Guillaume Nodet resolved KARAF-2840.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1.0
                   3.0.1
                   2.4.0

https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commit;h=808343e2bde812cde439db96b97586b6ec98bc5e
https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commit;h=2f49a15b97bfad0743b64816cb2ca9dc220d927f
https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commit;h=e7812263af1fcb4d4ba41fc407b045e0970847a1
https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commit;h=b0abfaefb9256605234afa58d58e3e5ea8441927

> Creating child container using admin service should use KARAF_OPTS
> ------------------------------------------------------------------
>
>                 Key: KARAF-2840
>                 URL: https://issues.apache.org/jira/browse/KARAF-2840
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 2.3.4
>            Reporter: Claus Ibsen
>            Assignee: Guillaume Nodet
>             Fix For: 2.4.0, 3.0.1, 3.1.0, 2.3.5
>
>         Attachments: karaf2840.patch
>
>
> When you use admin:create to create a child container, then the AdminService 
> is used to create the JVM process. This code does not read the KARAF_OPTS 
> environment variable which means the child container does not use that when 
> started.
> But if you use the bin/start script to start the child container, then the 
> setenv script will read the KARAF_OPTS. 
> So that means there is a difference between using the admin commands to 
> crate|start child containers, vs using the bin scripts.
> This is a serious problem for Windows users on IP6 network that hits a well 
> known issue, where they have to set a JVM system property to work around this.
> If they do not you get network issues such as
> java.net.SocketException: Permission denied: no further information
> To fix this with Karaf you set this option
> KARAF_OPTS '-Djava.net.preferIPv4Stack=true'
> Maybe either globally in the Windows box, or in the bin/setenv.bat file.
> But the child containers do not pickup that env option when created by admin 
> server.
> This patch fixes that.
> To see if the env option was picked up by Karaf, you can connect to the child 
> container, and run
> {code}
> dev:system-property | grep java.net
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to