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]

Reply via email to