Jarosław Pałka wrote:
Thanks, It almost works, there is only exception in class from cglib.jar (used by hibernate), it is included in classpath but merlin cannot find it.
Merlin has found the class but the class cannot be properly constructed. This is typically because the class is referencing another class that is unknown with the classloader hierarchy. My guess is the the cglib is doing something that requires classes in the system classloader. A solution to this problem may be to move the cglib jar file from the block definition to the classpath used to run the unit test. But this itself could be problematic as ant creates its own classloader above the system classloader.
Or even better - put cglib into the java lib/ext directory which will guarantee that its in the system classloader.
Steve.
--
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/merlin/distributions/latest | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
