[logback-dev] [JIRA] Assigned: (LBCLASSIC-252) Logback fails to load Groovy config when run under @Grab

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Fri Feb 18 09:42:53 CET 2011


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

Ceki Gulcu reassigned LBCLASSIC-252:
------------------------------------

    Assignee: Ceki Gulcu  (was: Logback dev list)

> Logback fails to load Groovy config when run under @Grab
> --------------------------------------------------------
>
>                 Key: LBCLASSIC-252
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-252
>             Project: logback-classic
>          Issue Type: Bug
>    Affects Versions: 0.9.28
>            Reporter: Evgeny Goldin
>            Assignee: Ceki Gulcu
>         Attachments: error.txt, logback.groovy
>
>
> *{{"ch.qos.logback.classic.gaffer.GafferConfigurator:48"}}* creates a GroovyShell() without specifying the classloader. When I have a Groovy application using Logback with Groovy config and it is retrieved with Groovy @Grab, where CL hierarchy is somewhat different from a usual invocation, the execution fails, error log is attached together with Groovy config.
> Here is the Groovy script using GCommons library that uses Logback: http://goo.gl/wuU05
> Here is the patch that is now part of GCommons to make Logback load the config: http://goo.gl/pvSzz

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