-
1. Re: Simple class loading issue
jaikiran Jul 25, 2005 4:07 AM (in response to kannan_ekanath)Change your code to:
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(configResource);
instead of:
InputStream inputStream = new ClassLoaderProvider().getResourceAsStream(configresource); -
2. Re: Simple class loading issue
kannan_ekanath Jul 25, 2005 5:05 AM (in response to kannan_ekanath)Hei,
The line will solve the issue but the call that i gave u was the one i debugged and the method call is in a CoreUtils library class which is reused across all apps+platforms implying that i cannot change the line.
I was looking for some setting that is required in jboss-service to load it.
I am using jboss-4.0.2 (I think jboss have reloaded the class loading fundamentals in this release).
Any thoughts again? I apologise for not saying in my earlier post, that the code-piece was part of a Core Library that i cannot presently change?
Thanks -
3. Re: Simple class loading issue
kannan_ekanath Jul 25, 2005 5:06 AM (in response to kannan_ekanath)InputStream inputStream = new ClassLoaderProvider().getResourceAsStream(configresource);
Basically this method call is part of a generic service locator library. I wanted to know if there is a fix at my application level, for this?