You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Michelle Caisse (Commented) (JIRA)" <ji...@apache.org> on 2012/03/20 04:37:41 UTC

[jira] [Commented] (JDO-706) No enhancer log output with maven 2

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

Michelle Caisse commented on JDO-706:
-------------------------------------

The approach suggested to solving this problem is to manually add the log4j jar file to the class loader used to invoke JdoHelper.getEnhancer(ClassLoader) and to remove it from the project dependencies, so that log4j.properties file will be found in the root directory of the class loader used to load log4j. I have been able to make this approach work in a test environment; however, it entails removing springframework from the dependencies as well, since it has log4j as a transitive dependency. (To verify this, run mvn -X jdo-exectck:enhance.) I need input on how to proceed.
                
> No enhancer log output with maven 2
> -----------------------------------
>
>                 Key: JDO-706
>                 URL: https://issues.apache.org/jira/browse/JDO-706
>             Project: JDO
>          Issue Type: Bug
>          Components: tck
>    Affects Versions: JDO 3 maintenance release 1 (3.1)
>            Reporter: Michelle Caisse
>            Assignee: Michelle Caisse
>
> No log output for enhancement is produced. The following warnings are issued:
> [INFO] [jdo-exectck:enhance {execution: default-cli}]
> log4j:WARN No appenders could be found for logger (DataNucleus.Enhancer).
> log4j:WARN Please initialize the log4j system properly.
> Enhancing classes for identity type datastoreidentity
> The classpath available to the enhancer does not provide access to the log properties file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira