You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dean Hiller <de...@alvazan.com> on 2009/11/01 17:32:48 UTC

how to configure multiple urls with app not starting twice

I have been going off this documentation...

http://tomcat.apache.org/tomcat-4.1-doc/html-manager-howto.html

which is a bit confusing.  I really want to do something like this...

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

        <Context path="/" docBase="../apps/saasmain.war"/>

but the doc says path HAS to be saasmain.  Doc also says docBase can't be
inside appBase which is why I do the ../apps.  I want to do 3 different
domains each being at the root of tomcat, but I seem to keep getting it
wrong.  ALSO, I want my files to be saasmain.war, timecard.war, not ROOT.war
as well.  I could cheat and do the ROOT.war path but I would rather not do
that and figure out how this all works.

I do have another config that does work with 3 urls and app names BUT it
boots the apps twice every time because docBase is inside appBase according
to the docs.
thanks,
Dean

RE: how to configure multiple urls with app not starting twice

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Dean Hiller [mailto:dean.hiller@gmail.com]
> Subject: Re: how to configure multiple urls with app not starting twice
> 
> actually, I am using 6.0.16

Then please, please use the doc for the that level, not the ancient version you have been referring to.

> Anyway to maintain the war file name so we can tell what war
> file is what?

First, remove all <Context> elements from conf/server.xml.

Keep your webapps outside of Tomcat's directory space, and create conf/Catalina/[host]/[appName].xml files for each, where [appName] is the URI path for the app (ROOT for the default).  Inside each said file, place a <Context> element with a docBase attribute pointing to the location of the related .war file.  Do not use a path attribute.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: how to configure multiple urls with app not starting twice

Posted by Dean Hiller <de...@gmail.com>.
actually, I am using 6.0.16....google yielded me that docs from searching
the web.  Anyway to maintain the war file name so we can tell what war file
is what?
thanks,
Dean

On Sun, Nov 1, 2009 at 9:46 AM, Hassan Schroeder <hassan.schroeder@gmail.com
> wrote:

> On Sun, Nov 1, 2009 at 9:32 AM, Dean Hiller <de...@alvazan.com> wrote:
>
> > http://tomcat.apache.org/tomcat-4.1-doc/html-manager-howto.html
>
> Why such an ancient version of Tomcat?
>
> > ALSO, I want my files to be saasmain.war, timecard.war, not ROOT.war
> > as well.  I could cheat and do the ROOT.war path
>
> Why do you think "doing things the conventional way" is "cheating"??
>
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
> twitter: @hassan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: how to configure multiple urls with app not starting twice

Posted by Hassan Schroeder <ha...@gmail.com>.
On Sun, Nov 1, 2009 at 9:32 AM, Dean Hiller <de...@alvazan.com> wrote:

> http://tomcat.apache.org/tomcat-4.1-doc/html-manager-howto.html

Why such an ancient version of Tomcat?

> ALSO, I want my files to be saasmain.war, timecard.war, not ROOT.war
> as well.  I could cheat and do the ROOT.war path

Why do you think "doing things the conventional way" is "cheating"??

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org