Thanks Doc. I am attempting to refactor common classes is not for 
saving "a bit more of PermGen" space, but to create a structured layering.
You won't duplicate a sorting algorithm even if it takes only a few more bytes
would you?

I am trying to determine if its possible to attempt such a layering with
Tomcat. I guess the answer is that this is not possible?

Also, could you pl address the following question:

        >2) In the lifecycle of a webapp context:
        >      - when is the webapp classloader "born"?
        >     - is the webapp classloader loaded by the commons 
        >       classloader or the system classloader?
        >     - which classloader loads the context loader listener?

Gracias,

/U

 -------------- Original message ----------------------
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> > Subject: Classloader Problems: loading webapp classes using commons CL
> > 
> > This has been the beginning of my problems: the common classes
> > make direct and indirect references to the webapp-specific classes
> > during the context loading.
> 
> "Doctor, doctor, it hurts when I do this."
> 
> So stop doing it.
> 
> You've encountered some of the reasons why putting not-quite-independent
> classes in the common library is pretty much always a bad idea.  The
> right thing to do is juse leave them in WEB-INF/lib of each webapp.
> Yes, it eats up a bit more PermGen space, so increase it.  It will make
> your life so much easier.
> 
> Here's the doc on Tomcat classloading, in case you haven't found it yet:
> http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to