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

ASF GitHub Bot commented on KARAF-6198:
---------------------------------------

jbonofre commented on pull request #793: [KARAF-6198] Fix quotes on Windows for 
wrapper
URL: https://github.com/apache/karaf/pull/793
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> 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: 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)

Reply via email to