Thanks, Yoav.
Using localhost:8080/test works if the docBase in the context is defined
to include test. However, as you suggested, I'm trying to create a
directory with multiple webapps, and I want to have multiple directories
like this. For example:
/cs/home/jas/webapps1/app1
/cs/home/jas/webapps1/app2
/cs/home/jas/webapps2/app3
/cs/home/jas/webapps3/app4
/cs/home/jas/webapps3/app5
I would prefer not to have to define each context/webapp individually, and
I would like new webapps to automatically be deployed if placed in any of
these repositories. You say that I can define appBase for the host.
Right now, in server.xml, I see:
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
If I want multiple appBase directories for this host, can I define
multiple host lines, changing the appBase directive for each one?
Would this mean that I now do not have to add any context lines for the
applications to work?
Thanks so much for your help ...
Jason.
On Wed, 25 Feb 2004, Shapira, Yoav wrote:
>
> Howdy,
>
> >I am very troubled over a servlet mapping problem, and I am hoping that
> >someone can make a suggestion.
> >
> >I have added a context in conf/Catalina/localhost/test.xml as follows:
> >
> ><Context path="/mywebapps" docBase="/cs/home/jas/webapps"
> reloadable="true"
> >autoDeploy="true"></Context>
> >
> >In "/cs/home/jas/webapps/test", I have a directory "test" with a
> >"WEB-INF" directory containing:
>
> Make sure you understand that one context = one webapp. If you want the
> "test" webapp to available, make test.xml more like
>
> <Context path="/test" docBase="/cs/home/jas/webapps/test" />
>
> And then go to http://yourhost:yourport/test to access your webapp.
>
> If you have multiple webapps under /cs/home/jas/webapps and want tomcat
> to recognize them all, define /cs/home/jas/webapps as the appBase
> directory for a Host.
>
> Yoav Shapira
>
>
>
> This e-mail, including any attachments, is a confidential business communication,
> and may contain information that is confidential, proprietary and/or privileged.
> This e-mail is intended only for the individual(s) to whom it is addressed, and may
> not be saved, copied, printed, disclosed or used by anyone else. If you are not
> the(an) intended recipient, please immediately delete this e-mail from your computer
> system and notify the sender. Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]