db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Jefferson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JDO-681) RI enhancer is not finding log4j properties file
Date Sat, 09 Jul 2011 15:15:30 GMT

    [ https://issues.apache.org/jira/browse/JDO-681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13062396#comment-13062396

Andy Jefferson commented on JDO-681:

Refer to http://logging.apache.org/log4j/1.2/manual.html and search for "log4j.properties".
It looks for the log4j.configuration System property, and otherwise uses "file:log4j.properties",
then (attempts to) converts it to a URL, etc. 
DataNucleus M2 plugin, when used for enhancement, simply passes in the above System property
as above.

> RI enhancer is not finding log4j properties file
> ------------------------------------------------
>                 Key: JDO-681
>                 URL: https://issues.apache.org/jira/browse/JDO-681
>             Project: JDO
>          Issue Type: Bug
>          Components: tck
>    Affects Versions: JDO 3 maintenance release 1
>            Reporter: Michelle Caisse
>            Assignee: Andy Jefferson
> While running the enhance goal of the TCK, on instantiation of the enhancer, warnings
are produced about log4j initialization and appenders. The resources(log4j.properties) are
on the classpath of the classloader used to instantiate the enhancer. To find the resources,
the enhancer need to use that classloader, not the context classloader.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message