You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Christian Brüssow (JIRA)" <ji...@apache.org> on 2019/03/18 10:54:00 UTC

[jira] [Created] (KARAF-6198) Spaces in the path stored in KARAF_ETC will prohibit service start-up

Christian Brüssow created KARAF-6198:
----------------------------------------

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


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)