When I run this test case from command line I get same exception.
When I run whole container which uses hibernate and cglib it works without
any problems.


----- Original Message ----- 
From: "Stephen McConnell" <[EMAIL PROTECTED]>
To: "Avalon framework users" <[EMAIL PROTECTED]>
Sent: Wednesday, March 03, 2004 5:23 PM
Subject: Re: Ant,JUnit and AbstractMerlinTestCase


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]


----------------------------------------------------------------------
Portal INTERIA.PL zaprasza... >>> http://link.interia.pl/f17cb






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to