David:
I have a suspision that there may be problem with respect to synchronization of versions. If your running from cvs, can you please update your avalon CVS and execute the following:
cd avalon\util maven avalon:clean avalon:build cd ..\meta maven avalon:clean avalon:build cd ..\repository maven avalon:clean avalon:build cd ..\merlin maven avalon:clean avalon:build merlin:replicate
If you running from binary downloads, the alternative is to delete the maven local repository directories for avalon-util, avalon-meta, avalon-repository and merlin and re-excecute your test case (i've just uploaded fresh copies of eveything). I'm not saying that this will solve the problem you have - but at least we will be working relative to the same base.
Cheers, Steve.
David Le Strat wrote:
Hello there,
I am running in some issue with Merlin unit testing.
I am setting up a system property: java.util.prefs.PreferencesFactory=org.apache.jetspeed.spi.services.prefs.impl.PreferencesFactoryImpl
My issue is that despite the fact that the PreferencesFactoryImpl is located under /target/src, Merlin cannot find the class.
Any suggestion why that would be?
Looking at the JDK implementation, I noticed that the Preferences class gets instantiated as:
public abstract class Preferences {
static {
....
factory = (PreferencesFactory)
Class.forName(factoryName, false,
ClassLoader.getSystemClassLoader()).newInstance();
.... } .... }
My guess is that this won't play nice with Merlin/Maven. Would you agree, if so any suggestion on a work around? Can Merlin class loader add classes to the system class loader?
Regards,
David Le Strat.
__________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
Stephen J. McConnell mailto:[EMAIL PROTECTED]
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/ | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
