|
From: Alex A. <aar...@pi...> - 2005-12-04 14:35:46
|
Hello, I am having an issue with spring when I use GenericApplicationContext. = Even though I have used setClassLoader() prior to loading my beans, it = seems at some point that ClassPathResource loses focus of it. After spending some time debugging, it seems that ClassPathResource has = a private member "classLoader" that gets set to the ClassLoader of the = thread context. So, even though ClassPathResource was actually loaded = with the ClassLoader I used to override, it uses the private member = instead. My current brutish fix resets ClassPathResource.classLoader to = getClass().getClassLoader() if it was indeed loaded by my classloader. = I do this in the constructor. Is ClassPathResource behaving as expected here? That is, shouldn't it = be loaded with the ClassLoader that I set using = GenericApplicationContext? Best regards, --Alex #######DON'T REPLY TO THIS EMAIL DIRECTLY######### sorry but I'm on my web client where I can't set my reply-to. |