You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Burn Lewis (JIRA)" <de...@uima.apache.org> on 2016/12/22 03:34:58 UTC

[jira] [Commented] (UIMA-5227) Customized user logging fails in DUCC Job Driver

    [ https://issues.apache.org/jira/browse/UIMA-5227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15768906#comment-15768906 ] 

Burn Lewis commented on UIMA-5227:
----------------------------------

The problem was not the ToLog class - apparently the java logging classes are loaded from the thread-context classloader, not that of the calling class.  So when using reflection the thread-context classloader must be set for the newInstance method as well as the invoke method.


> Customized user logging fails in DUCC Job Driver
> ------------------------------------------------
>
>                 Key: UIMA-5227
>                 URL: https://issues.apache.org/jira/browse/UIMA-5227
>             Project: UIMA
>          Issue Type: Bug
>          Components: DUCC
>            Reporter: Burn Lewis
>            Assignee: Burn Lewis
>            Priority: Minor
>             Fix For: future-DUCC
>
>
> When a user specifies a custom logging configurator via -Djava.util.logging.config.class it fails in the JD as its ToLog class creates a logger using the DUCC classpath which does not have the users class.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)