You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2007/08/07 16:41:29 UTC

Re: tomcat 5.5.23 CAN have context path different from war name.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

lmk,

lmk wrote:
> [Is there a way] to set the context path [to something other than] the
> application name[?]

Yes. This has been discussed several times on the list.

> i set the context into the META-INF directory, tomcat copied this the
> contaxt into CATALINA_HOME/conf/Enginename/HostName/app_name.xml.

So, you used Tomcat's automatic deployment to deploy a directory or WAR
file from "webappps", right?

> but the /mycontextpath  is not deployed..I still have the /app_name
> context..

If you want to deploy an application to something other than
"/warfilename" or "/directoryname", then you need to leave your
directory (or WAR file) out of the "webapps" directory. Instead, copy
META-INF/context.xml into
$CATALINA_HOME/conf/engine/host/desired_app_name.xml and start Tomcat.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGuISZ9CaO5/Lv0PARAlZ2AKCKRYM0tWNVJLzLghevEgl6qIgkfwCfWJ1a
LjD4EA/Er6Rnt3Kz2oER3g8=
=gRHM
-----END PGP SIGNATURE-----

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