Quantcast

spring load-time-weaver in grails

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

spring load-time-weaver in grails

Tim Pigden
Hi,
I get
2009-03-29 13:58:26,895 [main] ERROR context.ContextLoader  - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loadTimeWeaver': Initialization of bean failed; nested exception is java.lang.IllegalStateException: ClassLoader [java.net.URLClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:spring-agent.jar
        at java.security.AccessController.doPrivileged(Native Method)
        at g

when I try to put a load-time-weaver into grails. I found a previous post from about a year back but there never seemed to be any resolution to the problem. I tried putting the agent in OPTS and other places, it makes no difference. And I'm pretty sure it's being executed since the vm complains if the jar location is incorrect.

So was there a solution?
I'm using Grails 1.1
Tim


Loading...