The context class loader contains tck/target/classes and either lib/jdori or lib/iut, which is the location of log4j.properties works for enhancement. The enhancer seems to need the ASM jar file in the same loader as the classes to be enhanced. So at this point, I'm only using one classloader both to get the enhancer and to configure the enhancer. So far, so good, but more testing is needed.

-- Michelle

On 3/25/2012 9:42 AM, Craig L Russell wrote:
Very Cool!

So what is the class loader configuration that makes it all work? Is the solution "portable" to iut?

Craig

On Mar 24, 2012, at 5:28 PM, Michelle Caisse (Commented) (JIRA) wrote:


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

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

I have enhancement working with no errors or warnings now. I need to include tck/target/classes on the classpath. Without it, log4j complains that it can't find org.apache.jdo.tck.util.TCKFileAppender and the ri enhancer complains that it can't find org/apache/jdo/tck/util/DeepEquality.

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



Craig L Russell
Architect, Oracle
http://db.apache.org/jdo
408 276-5638 mailto:craig.russ...@oracle.com
P.S. A good JDO? O, Gasp!



Reply via email to