You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Chen Levy (Jira)" <ji...@apache.org> on 2021/01/06 17:06:00 UTC

[jira] [Created] (LOG4J2-2994) Setting configuration file path no longer works with Windows OS

Chen Levy created LOG4J2-2994:
---------------------------------

             Summary: Setting configuration file path no longer works with Windows OS
                 Key: LOG4J2-2994
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2994
             Project: Log4j 2
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 2.13.3, 2.14.0, 2.13.2
         Environment: Windows 10

Tomcat 9.0.40

AdoptOpenJDK 15.0.1
            Reporter: Chen Levy


Hello Everyone

Our project uses the following configuration when setting up Log4J2 with Tomcat:
{code:java}
-Dlog4j.configurationFile=$CATALINA_HOME/conf/log4j2.xml
{code}
This worked fine for many years now, but starting with version 2.13.2 we get the following exception on Windows machines:
{code:java}
ERROR StatusLogger Unable to access file://C/Work/Servers/apache-tomcat-9.0.40/conf/log4j2.xml
 java.net.UnknownHostException: C
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:567)
	at java.base/java.net.Socket.connect(Socket.java:648)
	at java.base/sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:961)
	at java.base/sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:923)
{code}
This prevents us from upgrading pass 2.13.1

Thanks



--
This message was sent by Atlassian Jira
(v8.3.4#803005)