Re: WebClassLoader using SystemClassLoader to load ServletDef?

2012-09-25 Thread Elgs Chen
Hi Chris, Thanks for reminding. I'm fully aware of the separating to protecting mechanism, and some classes are loaded from top to down, like those starting with java and javax, and some are prohibited to be loaded from the webapp class loaders, like the servlet API classes like ServletDef, oth

Re: WebClassLoader using SystemClassLoader to load ServletDef?

2012-09-25 Thread Christopher Schultz
Elgs, On 9/25/12 1:15 PM, Elgs Chen wrote: > Hi Mark, > > I finally get my homework done. Thank you so much for pointing me to the > right direction. That really helped me to gain huge insight into the inner > world of the tomcat. > > I used JPDA to attach my eclipse to tomcat. Then I was able

Re: WebClassLoader using SystemClassLoader to load ServletDef?

2012-09-25 Thread Elgs Chen
Hi Mark, I finally get my homework done. Thank you so much for pointing me to the right direction. That really helped me to gain huge insight into the inner world of the tomcat. I used JPDA to attach my eclipse to tomcat. Then I was able to see everything happens with the WebappClassLoader.loa

Re: WebClassLoader using SystemClassLoader to load ServletDef?

2012-09-25 Thread Mark Thomas
On 25/09/2012 16:04, Elgs Chen wrote: > Hi Mark, > > Thanks for your fast answer. That helped me to narrow down the scope of this > problem. I understand line 262 is to initialize and create the common, shared > and catalina class loaders. But I'm still struggling how the > WebappClassLoader.lo

Re: WebClassLoader using SystemClassLoader to load ServletDef?

2012-09-25 Thread Elgs Chen
Hi Mark, Thanks for your fast answer. That helped me to narrow down the scope of this problem. I understand line 262 is to initialize and create the common, shared and catalina class loaders. But I'm still struggling how the WebappClassLoader.loadClass(String name, boolean resolve) be able to l

Re: WebClassLoader using SystemClassLoader to load ServletDef?

2012-09-25 Thread Mark Thomas
On 25/09/2012 13:19, Elgs Chen wrote: > Dear Tomcat Developers, > > I have a question regarding the behavior of the > WebClassLoader.loadClass(String name, boolean resolve) in the > org.apache.catalina.loader package. > > I have the following assumptions, please correct me if any is wrong: > 1,

WebClassLoader using SystemClassLoader to load ServletDef?

2012-09-25 Thread Elgs Chen
Dear Tomcat Developers, I have a question regarding the behavior of the WebClassLoader.loadClass(String name, boolean resolve) in the org.apache.catalina.loader package. I have the following assumptions, please correct me if any is wrong: 1, It seems the WebClassLoader only uses the SystemClassL