tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Bucciarelli" <m...@edp-progetti.it>
Subject Re: How to avoid load af a context at startup of Tomcat
Date Wed, 15 Jan 2003 08:44:09 GMT
Thanks Dan, this is a good idea! I think this will work also for me.
Do you know if the "install" action accepts also uncompressed webapps or
does it work only with a war file?

Bye,
Marco.

----- Original Message -----
From: "Dan Payne" <dpayne@sotx.org>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Tuesday, January 14, 2003 10:17 PM
Subject: RE: How to avoid load af a context at startup of Tomcat


> Marco, here's how I do it (I'm on a windows dev machine):
>
> 1.> Place all documentation and example .war files in
> C:\jakarta-tomcat-4.1\webapps\ Mine contains the following  applications:
>
> examples
> standard-doc (JSTL documentation)
> standard-exmplas (JSTL examples)
> struts-documentation
> strutsel-exercise-taglib (Struts Exression Language examples)
> tomcat-docs
>
> I put only those apps that I do not modify and that will *always* be
> deployed here in the traditional spot. I use these example and
documentation
> apps a lot thus they reside here.
>
> 1.> move all in development webapps (my webapps) from
> C:\jakarta-tomcat-4.1\webapps\ to  C:\webapps\ In this directory I have
> about seven webbaps. Not each one is currently in development and some are
> done and thus rarely used and therefore do not need to be deployed every
> time tomcat starts up.
>
> 2.> define context entries in server.xml for each webapp that will
*always*
> be deployed, such as:
>
> <Context path="/foo" docBase="C:\webapps\foo\ debug="0" />
>
> These are the apps that are currently in development by myself.
>
> 3.> load all as-needed webapps using the manager app with a command like:
>
> http://localhost/manager/install?path=/bar&war=file:/C:\webapps\bar
>
> These are the apps that I develop only once in a blue moon and/or need to
> reference once in a while.
>
>
>
> If any of that's not clear let me know. This system works great for me.
One
> other thing: I actually have the following structure for each app at
> C:\webapps\<appName>\
>
> backup\
> docs\
> logs\
> metrics\
> preproduction\
> src\
> unused\
> web\
> web\WEB-INF
>
> So my server.xml entry actually looks like this: <Context path="/foo"
> docBase="C:\webapps\foo\web" debug="0" />
> You can also place the work directory here as well but I don't.
>
> Hope that helps.
>
> Dan
>
> -----Original Message-----
> From: Marco Bucciarelli [mailto:mbuc@edp-progetti.it]
> Sent: Tuesday, January 14, 2003 2:29 AM
> To: tomcat-user@jakarta.apache.org
> Subject: How to avoid load af a context at startup of Tomcat
>
>
> Is there a way to tell Tomcat (Tomcat 4.1.18, RedHat Linux 7.0) not to
load
> a context when it starts up?
>
> I would like to start only some of the applications that I have under my
> webapps directory, and to start the others manually with the manager
> application only if I really need them. Unfortunately I can not configure
> two different servers to manage separately those applications.
> All the webapps have an entry as a context in my server.xml file.
>
> I could not find anything in the documentation.
>
> Thanks,
> Marco.
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message