This content has been marked as final.
Show 4 replies
-
1. Re: Thread.currentThread().getContextClassLoader().getResource("") returns null
jaikiran Sep 27, 2012 10:15 PM (in response to michael-s)Is that the full exception stacktrace? It doesn't tell me what's wrong or how it's related to the TCCL issue you mention. Can you paste the full stacktrace please?
-
2. Re: Thread.currentThread().getContextClassLoader().getResource("") returns null
michael-s Sep 28, 2012 3:21 AM (in response to jaikiran)The jboss pojo class loader does not find the configuration files, schema files, etc. inside our ear and the initialization of the bean fails because of that. When I switch the class loader to MyClass.
class.getClassLoader() everything (getResource, etc.) works fine.
-
3. Re: Thread.currentThread().getContextClassLoader().getResource("") returns null
jaikiran Sep 28, 2012 3:32 AM (in response to michael-s)It looks like the POJO subsytem isn't setting the TCCL to the application's CL while invoking on the application's lifecycle methods. Please create a AS7 JIRA under the pojo component.
-
4. Re: Thread.currentThread().getContextClassLoader().getResource("") returns null
michael-s Sep 28, 2012 4:50 AM (in response to jaikiran)I created the issue AS7-5652 for this problem.