Hello:

all of the web app when using Sevlets or Jsps, must conform
the Servlet 2.1 especification. I mean it must have a WEB-INF
directory and a lib and classes directories into it, in addition to
a web.xml file, called the web deployment descriptor.

The webclassloader follows certain steps when loading classes
like jars. u could cut the struts jars from the lib directory of
your web app and u could put them into the lib directory of tomcat, i mean 
common/lib, so that they wolud be available for all the web apps.

u could also put them in the ext directory from ur java machine,
but that's your decision, and the system manager's decision too.

I think there is no problem about having several copies of the
struts jar, because each application is independent.


On Tue, 22 Jun 2004 16:43:23 +0200, Dirk Markert wrote
> Hello Michael,
> 
>   
> 
> ***************************************************************
> 
> MK> Hello,
> 
> MK> maybe someone can help. I've tried to deploy two struts 
> applications to MK> two tomcat test servers (one running tomcat 5.0 
> and one running tomcat MK> 4.1) but I can't get it to work on 
> neither of them.
> 
> MK> For development purposes I had all required jar files in the 
> MK> application's WEB-INF lib. Then I've removed them all and 
> deployed my MK> war files to the servers.
> 
> MK> I've put all the struts _war_ files from the jakarta-struts-1.1/webapps
> MK> dir into my server's _webapps_ dir as described in the 
> installation part MK> of the struts documentation.
> 
> MK> After restarting the _servers_ all applications in my webapps folder
> MK> were properly deployed but my own struts application (which is 
> not MK> located in the webapps dir) could neither find the struts 
> classes nor MK> any other classes required.
> 
> MK> Does anybody know why?
> 
> MK> How can I make Tomcat (4 and 5) find the struts jar files i.e. classes?
> 
> MK> The only way I can get my application running is to put all required
> MK> jars into the application's WEB-INF/lib directory. Since this is 
> not my MK> only struts application I end up with multiple copies of 
> theses jar MK> files on the same server.
> 
> MK> It works that way, but that's not how it's supposed to work, or 
> is there MK> something I am missing?
> 
> That's exactly the way it is supposed to work. Don't try anything
> else.
> 
> MK> Any help is appreciated.
> 
> MK> Greetings
> 
> MK> Michael Kastner
> 
> MK> -----------------------------------------------------------------
> ---- MK> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> MK> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> Regards,
> Dirk
> 
> +------- Quality leads ---------------------------------------+
> | Dirk Markert                     [EMAIL PROTECTED] |
> | Dr. Markert Softwaretechnik AG                              |
> | Joseph-von-Fraunhofer-Str. 20                               |
> | 44227 Dortmund                                              |
> +---------------------------------->>>>>>> to success! <<<<<<-+ 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


--
Ricardo Andrés Quintero R.
Ubiquando Ltda.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to