You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2014/07/08 21:50:05 UTC
[jira] [Issue Comment Deleted] (LOG4J2-704)
-Dlog4j.configurationFile no longer accepts relative paths
[ https://issues.apache.org/jira/browse/LOG4J2-704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory updated LOG4J2-704:
--------------------------------
Comment: was deleted
(was: That does NOT look like a 2.0-rc2 stack trace.
{{ConfigurationFactory.getInputFromURI()}} was renamed to {{ConfigurationFactory.getInputFromUri()}} before rc2.
Verify your classpath and try again.)
> -Dlog4j.configurationFile no longer accepts relative paths
> ----------------------------------------------------------
>
> Key: LOG4J2-704
> URL: https://issues.apache.org/jira/browse/LOG4J2-704
> Project: Log4j 2
> Issue Type: Bug
> Components: Configurators
> Affects Versions: 2.0-rc2
> Environment: Ubuntu. Oracle Java 1.7.
> Reporter: Andy Grove
> Priority: Minor
>
> I just upgraded from beta9 to rc2 and my command line applications now fail on startup.
> I am passing -Dlog4j.configurationFile=conf/log4j2.xml
> The documentation does not state that relative paths are no longer supported but the error indicates that only absolute paths can now be used.
> ] ERROR StatusLogger Unable to access conf/log4j2.xml java.lang.IllegalArgumentException: URI is not absolute
> [java] at java.net.URI.toURL(URI.java:1095)
> [java] at org.apache.logging.log4j.core.config.ConfigurationFactory.getInputFromURI(ConfigurationFactory.java:258)
> [java] at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:374)
> [java] at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:385)
> [java] at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:149)
> [java] at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:84)
> [java] at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:35)
> [java] at org.apache.logging.log4j.LogManager.getContext(LogManager.java:257)
> [java] at org.slf4j.helpers.Log4jLoggerFactory$PrivateManager.getContext(Log4jLoggerFactory.java:104)
> [java] at org.slf4j.helpers.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:90)
> [java] at org.slf4j.helpers.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:46)
> [java] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
> [java] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org