2009/12/14 philippe van dyck <[email protected]>

> Hi all,
>
> if you try to use jClouds or Infinispan S3 cache store with cglib, as does
> qi4j, you will probably receive an ugly exception telling you that cglib is
> nowhere to be found...
>
> The only way to get rid of it is by disabling guice's custom loader by
> adding this flag to your command line : -Dguice.custom.loader=false
>

Guice embeds a local trimmed-down copy of CGLIB, so it shouldn't be affected
by other CGLIB jars on the classpath.
If you're getting a "FastClass" exception then it's more likely that you're
hitting issue 343 or something related to that:

   http://code.google.com/p/google-guice/issues/detail?id=343

You might want to try the latest patch/jar attached to the issue, to see if
it fixes the problem without needing that flag.
There's also a "no-AOP" build available from the downloads section that
doesn't have CGLIB (suitable for Android, etc.)

You will also need to add this library to your pom.xml
>  <dependency>
> <groupId>javax.inject</groupId>
> <artifactId>javax.inject</artifactId>
> <version>1</version>
> </dependency>
>
> Hope it helps,
>
> Cheers,
>
> Philippe
>
> P.S.: I spent hours trying to figure out what was happening since all the
> libs where on the classpath
>
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
>
> --
Cheers, Stuart
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to