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.


What happens when you run the block directly using merlin from the command line?

Stephen.

    [junit] Exception: java.lang.NoClassDefFoundError
    [junit] Message: net/sf/cglib/reflect/FastClass


--

|------------------------------------------------|
| 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]



Reply via email to