How can I tell which webapp a classloader belongs to?

I'm not aware of any property that you could use to identify the webapp classloaders as far as a context goes, but you could walk through each of your contexts looking at their associated classloaders and find matches that way.

. I don't want to pollute my web-apps by writing code to look for thread context classloaders (if that is indeed the same as the classloader associated with the webapp...) Is there anyway to get the webapp associated classloader from the webapp context? – unmaskableinterrupt Sep 2 '10 at 21:47 If you are using Tomcat, you can access the webapp class loader with context.getLoader() and you can also access the parent classloader from within that same context like so context.

GetParentClassLoader(). By context I mean org.apache.catalina. Context which should be available within any Servlet class.

– Mondain Sep 2 '10 at 22:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions