users@glassfish.java.net

Re: ClassCastException when using JPA result

From: <glassfish_at_javadesktop.org>
Date: Sun, 31 Aug 2008 12:13:08 PDT

here's the solution: Create your own SimpleLoadTimeWeaver class and override the getInstrumentableClassLoader(); and update the XML descriptor to MyClassLoader

public class MyClassLoader extends org.springframework.instrument.classloading.SimpleLoadTimeWeaver {

    @Override
    public ClassLoader getInstrumentableClassLoader() {
        return super.getInstrumentableClassLoader().getParent();
    }

}
[Message sent by forum member 'bchi' (bchi)]

http://forums.java.net/jive/thread.jspa?messageID=296417