You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Chappell, Simon P" <Si...@landsend.com> on 2002/03/12 18:14:53 UTC

Why no struts.jar on the classpath?

I want to start out by saying that I have read the fine manual and realise that the struts FAQ says that the struts.jar "must not" be placed on the application server's CLASSPATH.

My question to this list is why is this the case? I have a build manager who very much wants only a single instance of any jar file to exist on a server and they are asking why I am talking about putting multiples of the same file on their machine?

Simon

-----------------------------------------------------------------
Simon P. Chappell                     simon.chappell@landsend.com
Java Programming Specialist                      www.landsend.com
Lands' End, Inc.                                   (608) 935-4526

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Why no struts.jar on the classpath?

Posted by keithBacon <ke...@yahoo.com>.
Below is an extract from the link below. I don't really understand it that well
but if no guru answers..... You might search the archives further I'm sure I've
seen this answered there but didn't find it.
It's something to do with which class loader loads the struts classes. It has
to be your web-apps class loader not the server class loader....
Sorry this is not as witty as Mr Galbreath's answer & probably just as
useless.....
===========================================
So, just like a call to a struts class in a web-app will need to be referenced
under the WEB-INF (which is why we place the struts.jar file in the WEB-INF/lib
directory, you also need to have a root-relative path for any Application
Resources.  I place mine in the WEB-INF/classes folder as that is
automatically referenced by my web container.

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg11825.html





--- "Chappell, Simon P" <Si...@landsend.com> wrote:
> I want to start out by saying that I have read the fine manual and realise
> that the struts FAQ says that the struts.jar "must not" be placed on the
> application server's CLASSPATH.
> 
> My question to this list is why is this the case? I have a build manager who
> very much wants only a single instance of any jar file to exist on a server
> and they are asking why I am talking about putting multiples of the same file
> on their machine?
> 
> Simon
> 
> -----------------------------------------------------------------
> Simon P. Chappell                     simon.chappell@landsend.com
> Java Programming Specialist                      www.landsend.com
> Lands' End, Inc.                                   (608) 935-4526
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 


=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>