Björn Kautler created LOG4J2-2494:
-------------------------------------

             Summary: configurationFile with drive letter gives exception but 
works
                 Key: LOG4J2-2494
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2494
             Project: Log4j 2
          Issue Type: Bug
    Affects Versions: 2.11.1
            Reporter: Björn Kautler


Setting system property 
{{-Dlog4j.configurationFile=D:/project/build/install/project/config/log4j2.xml}},
 while working, the content is properly evaluated, first logs the following 
exception:

{noformat}
ERROR StatusLogger Invalid URL 
D:/project/build/install/project/config/log4j2.xml
 java.net.MalformedURLException: unknown protocol: d
        at java.net.URL.<init>(URL.java:600)
        at java.net.URL.<init>(URL.java:490)
        at java.net.URL.<init>(URL.java:439)
        at java.net.URI.toURL(URI.java:1089)
        at 
org.apache.logging.log4j.core.config.ConfigurationSource.fromUri(ConfigurationSource.java:247)
        at 
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:404)
        at 
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:346)
        at 
org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:260)
        at 
org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:615)
        at 
org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:636)
        at 
org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:231)
        at 
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:243)
        at 
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
        at org.apache.logging.log4j.LogManager.getContext(LogManager.java:174)
        at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:648)
        ...
{noformat}



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

Reply via email to