[logback-dev] [JIRA] Resolved: (LBCLASSIC-68) logback.xml not found when running under Ant task

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Fri Aug 29 15:43:45 CEST 2008


     [ http://jira.qos.ch/browse/LBCLASSIC-68?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gulcu resolved LBCLASSIC-68.
---------------------------------

    Fix Version/s: 0.9.10
       Resolution: Fixed

fixed in 1787

This issue is known to be complicated and thorny. I am sure revision 1787 is not the last word on the topic.

> logback.xml not found when running under Ant task
> -------------------------------------------------
>
>                 Key: LBCLASSIC-68
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-68
>             Project: logback-classic
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 0.9.9
>         Environment: Ant 1.7.1
>            Reporter: Gili
>            Assignee: Logback dev list
>             Fix For: 0.9.10
>
>
> Logback uses the thread context ClassLoader to look up logback.xml but the Ant uses a custom ClassLoader that does not have the task JAR in its classpath, as a result logback.xml is never found.
> That is, getClass().getClassLoader().getResource("logback.xml") works
> Thread.currentThread().getContextClassLoader().getResource("logback.xml") does not.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list