[infinispan-dev] Hotwo : cglib and guice living in perfect harmony

philippe van dyck pvdyck at gmail.com
Sun Dec 13 18:18:34 EST 2009


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

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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20091214/5ebbc1ce/attachment-0002.html 


More information about the infinispan-dev mailing list