Running in Groovy results in the context class loader to be a
GroovyClassLoader. This loader does not seem to have any classpath associated
with it (the classpath is associated with its parent RootLoader).
When the TempLoader finds a class then it always overrides the domain classes
to look locally only, so the temp loader will never find them.
The startup sequence causes a temp loader to be created regardless of whether
or not weaving is enabled. If this was fixed to not create a temp loader when
the weaving flag is turned off then groovy would work simply by turning off the