struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chaikin, Yaakov Y." <YAAKOV.Y.CHAI...@saic.com>
Subject RE: Validator question
Date Tue, 04 Jan 2005 18:30:27 GMT
Agree 100%. My comment was purely theoretical.

On a side note though... Does it consume more RAM if you have 10 apps
running on the same server all having their own validator jar in their lib?
If it does, this might not be as theoretical as I think. 

Of course, hopefully, I'll never be in a situation where such things matter
enough for me to start doing these tricks.

Thanks,
Yaakov.

-----Original Message-----
From: Jim Barrows [mailto:jbarrows@sssc.com]
Sent: Tuesday, January 04, 2005 1:05 PM
To: Struts Users Mailing List
Subject: RE: Validator question


> -----Original Message-----
> From: Chaikin, Yaakov Y. [mailto:YAAKOV.Y.CHAIKIN@saic.com]
> Sent: Tuesday, January 04, 2005 10:52 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Validator question
>
>
> Although I agree with you that it's much easier to keep it
> all in the lib of
> the webapp, I think it should still be ok to keep
> common-validator.jar in
> the server's shared lib directory.
>
> The classloader problem would only apply to struts.jar since
> it tries to
> load classes dynamically and therefore needs to be in the
> same (or below)
> classloader. I don't think validator framework does the same, does it?

I have no idea.  I consider it to be a complete waste of my time trying to
figure out classpath issues like this, so I just keep everything a web app
needs in it's lib directory.  My time is worth more then extra disk space,
so it doesn't make sense from a financial point of view. 
Then, you have upgrade issues... the new web app needs the latest jar, but
the old app blows up on the latest jar... so now your back to where you
were, plus the added time of finding out (probably after install to
production) that the latest jar blows up old applications.

Uggh. 



>
> Thanks,
> Yaakov.
>
> -----Original Message-----
> From: Jim Barrows [mailto:jbarrows@sssc.com]
> Sent: Tuesday, January 04, 2005 12:00 PM
> To: Struts Users Mailing List
> Subject: RE: Validator question
>
>
> > -----Original Message-----
> > From: Manisha Sathe [mailto:manisha_msathe@yahoo.com]
> > Sent: Tuesday, January 04, 2005 2:02 AM
> > To: user@struts.apache.org
> > Subject: Validator question
> >
> >
> > I just started learning validator (struts) and developed one
> > small form with one single field. I used Javascript and
> > serverside validatin both.
> >
> > Till now i used to put all my jar files inside {Tomcat
> > home}/common/lib and it was all ok. (I do not want to keep
> > too many copies of jar files inside different application
> > directories). Till now this seems to be not working.
>
> Nope it won't work.  Classloader issues.  See archive for details.
> Keep each wars jars in the lib.  Much easier.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message