karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-6198) Spaces in the path stored in KARAF_ETC will prohibit service start-up
Date Mon, 25 Mar 2019 14:57:00 GMT

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

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

Commit a207a610d5c3d4fc771e330fb6b4cf57fb48df18 in karaf's branch refs/heads/karaf-4.2.x from
Jean-Baptiste Onofré
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=a207a61 ]

[KARAF-6198] Fix quotes on Windows for wrapper


> Spaces in the path stored in KARAF_ETC will prohibit service start-up
> ---------------------------------------------------------------------
>
>                 Key: KARAF-6198
>                 URL: https://issues.apache.org/jira/browse/KARAF-6198
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.3
>            Reporter: Christian Brüssow
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>              Labels: windows, wrapper
>             Fix For: 4.3.0, 4.2.5
>
>
> A space in the KARAF_ETC environment variable will cause problems at least under MS Windows,
because the entry
> {code:java}
> wrapper.java.additional.11=-Djava.util.logging.config.file=%KARAF_ETC%/java.util.logging.properties{code}
> **is missing double quotes at least around %KARAF_ETC%.
> The wrapper.log shows this:
>  
> {noformat}
> INFO   | jvm 1    | 2019/03/08 02:06:13 | Error: Could not find or load main class
Files\foo\karaf\bin\..\etc.java.util.logging.properties
> ERROR  | wrapper  | 2019/03/08 02:06:13 | JVM exited while loading the application.
> {noformat}
>  
> Changing the entry to
> {code:java}
> wrapper.java.additional.11=-Djava.util.logging.config.file="%KARAF_ETC%/java.util.logging.properties"{code}
> fixes the issue.
> What irritates me still, ist the dot (".") between "etc" and "java.util...." in the log
message, but as I said, the double quotes around the complete entry fixed it.
> This is can happen under MS Windows if the Karaf service is installed below the default
"C:\Program Files\..." directory.
> We have not found a hint from the service wrapper documentation how to fix this via configuration.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message