Thanks Chris!  I now get "Document base
/dg/local/cots/tomcat/tomcat_8082/webapps/xyz does not exist or is not a
readable directory"

On Thu, Dec 8, 2016 at 2:50 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Victor,
>
> On 12/8/16 4:59 PM, Victor Rodriguez wrote:
> > THANKS IN ADVANCE FOR YOUR HELP!  (not yelling, just emphasizing!)
> >
> > I have abc.war and I want both /abc and /xyz to work for it.  I've
> > tried adding aliases="/abc=abc.war,/xyz=abc.war" and
> > aliases="/abc=abc,/xyz=abc" but neither of those worked.  This is
> > how my original context.xml looked like.
> >
> > <Context override="true" swallowOutput="true"> <!-- Doing
> > swallowOutput=true to allow each web applications System.out and
> > System.err calls to end up in a separate log, not in catalina.out.
> > See Jira CA-4589 --> <!-- Default set of monitored resources -->
> > <WatchedResource>WEB-INF/web.xml</WatchedResource> <!-- Disable
> > session persistence across Tomcat restarts by including this line;
> > no sessions used for many OGC implemenations--> <Manager
> > pathname="" />
> >
> > <!-- Uncomment this to enable Comet connection tacking (provides
> > events on session expiration as well as webapp lifecycle) --> <!--
> > <Valve
> > className="org.apache.catalina.valves.CometConnectionManagerValve"
> > /> -->
> >
> > </Context>
> >
>
> Tomcat 7 aliases are intended to map URLs within a single web
> application. You can't use it to duplicate the web application on two
> base paths.
>
> Here's what you need to do:
>
> 1. Put your WAR file in webapps/abc.war. This will deploy as usual.
>
> 2. Copy webapps/abc.war/META-INF/context.xml into
> conf/Catalina/localhost/xyz.xml and modify the <Context> element like
> this:
>
>   <Context override="true" swallowOutput="true" docBase="webapps/abc.war
> ">
>    ...
>   </Context>
>
> Hope that helps,
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJYSeO/AAoJEBzwKT+lPKRYBkIQAKiBaS7HNJrBfROGNu1pif1d
> ZPW1pyqXOp879TX9IjhViu8oSMQS1vymG4DrHscRUMlkdNuny+NHKecxKMv1La5i
> DtQOt2Hax26QizANh+cp9QHaJejdMpNM3mc4ySYfqi5bL4m3MlO7D+NycFT321/q
> mfKtDmH596B8TJRchoPjLCOl2jjPfvHSf2c1BVnztIOXXY/X4PwZfNiLv1uZDGnn
> pqK77m6TAiiMjV9lrn2DX7i3wZi1tiG13PoF16CYubmTNixbmZ45gO3dr+VmH+h2
> Q1hlN+MMghpbQ0Ukg1EYldA21ct31OjyG3ipinSHgTPygKV/ZvEIM3Zh67iU0bUn
> xOkiQ3G6nACSRP+0+9qFqnSGN283RQKC1eS6/ZnpG+YLOtNbh60+gLyOQk4O9/pw
> ZBabh7gOCjozHFmuDgcgec/Ql2kFS86fDBTX1QdjrhTdm/rH4rEAYShbL168gCC0
> vt+kjqR2QPJPkpxeuYiPTdoAI7eOLX1M4JfStF9Dmce5291262t2PJdBYJjulfVS
> cXVRjWgPCAiluBcyF2LME5E+jKEGeMtmBbK2+S8UVIXDS0MvKWLDln5PW8MAfWWr
> xfSFTBqNOKVtEuz22KpYkbljfXrLxn2uY6TKTjQnwddpH4t1TP0qSpnxCe38j3WT
> 3j37VFuqdMGl0f54yk12
> =hk95
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Sent from neither my iPhone nor my iPad.

Reply via email to