Re: Child-first classloading with Embedded Tomcat 7.0.11

2011-04-14 Thread Afkham Azeez
On Thu, Apr 14, 2011 at 3:41 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Afkham, > > On 4/13/2011 10:05 AM, Afkham Azeez wrote: > > We are using Embedded Tomcat 7.0.11. It seems that with Embedded Tomcat, > the > > default is

Re: Child-first classloading with Embedded Tomcat 7.0.11

2011-04-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Afkham, On 4/13/2011 10:05 AM, Afkham Azeez wrote: > We are using Embedded Tomcat 7.0.11. It seems that with Embedded Tomcat, the > default is parent-first class loading, even though the default in the Tomcat > binary distribution is child-first. Yes

Re: Child-first classloading with Embedded Tomcat 7.0.11

2011-04-13 Thread Afkham Azeez
Was able to solve this using a bootstrap mechanism. http://frank.zinepal.com/embedded-tomcat-class-loading-trickery was helpful. Azeez On Wed, Apr 13, 2011 at 8:33 PM, Afkham Azeez wrote: > According to http://yzb.hit.edu.cn/docs/class-loader-howto.html, > everything in the system classpath wil

Re: Child-first classloading with Embedded Tomcat 7.0.11

2011-04-13 Thread Afkham Azeez
According to http://yzb.hit.edu.cn/docs/class-loader-howto.html, everything in the system classpath will be visible to webapps, and hence will override the classes in the webapps, I think. So, the solution would be to implement a bootstrap mechanism, just like org.apache.catalina.startup.Bootstrap,

Child-first classloading with Embedded Tomcat 7.0.11

2011-04-13 Thread Afkham Azeez
Hi, We are using Embedded Tomcat 7.0.11. It seems that with Embedded Tomcat, the default is parent-first class loading, even though the default in the Tomcat binary distribution is child-first. Is there a way to setup child-first class loading in Embedded Tomcat? Thanks Azeez