You could try this:
http://static.springframework.org/spring/docs/1.2.x/api/org/ springframework/core/io/DefaultResourceLoader.html#setClassLoader (java.lang.ClassLoader)

On 6-dec-05, at 16:56, Geert Bevin wrote:

Well then it's clear that 2 different classloaders are loading the same class, RIFE's classloader and the system classloader. Either Spring doesn't respect the classloader hierarchy, by first asking to the classloader that loaded the ApplicationContext, either you need to provide it with an explicit parent classloader.

On 6-dec-05, at 16:45, Raoul Pierre wrote:

Geert,

That's of the Home class, no? Not of the Version class?

In the Home class, I have:

ApplicationContext ctx = new FileSystemXmlApplicationContext("c:/ DEV/Rife/rife-popsuite/web/WEB-INF/applicationContext2.xml");
Object bozo1 =  ctx.getBean("appBozoTarget");
Bozo bozo2 = new Bozo();
System.out.println("[com.uwyn.rife.jumpstart.elements.pub.Home] Bozo class, bean hashcode: "+ bozo1.hashCode()); System.out.println("[com.uwyn.rife.jumpstart.elements.pub.Home] Bozo class, direct hashcode: "+bozo2.hashCode()); System.out.println("[com.uwyn.rife.jumpstart.elements.pub.Home] Bozo class, bean classloader type/hashcode: " + bozo1.getClass().getClassLoader().getClass ().getName()
               +" / "
               + bozo1.getClass().getClassLoader().hashCode()
); System.out.println ("[com.uwyn.rife.jumpstart.elements.pub.Home] Bozo class, direct classloader type/hashcode: " + bozo2.getClass().getClassLoader().getClass ().getName()
               +" / "
               + bozo2.getClass().getClassLoader().hashCode()
               );
Pierre


_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to