tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: war problem
Date Tue, 31 Oct 2006 22:56:26 GMT

> i put my war under the ROOT directory.

Er! Wrong answer. The ROOT directory is the directory which contains the
(expanded) ROOT webapp, not a directory where WAR files should be
dropped in order to deply them as the root webapp. If you put a WAR file
in there, Tomcat will ignore it. It would be just like putting it under
a directory called "hjskdfhl" and expecting it to deploy.

> if i put it in the same directory of the ROOT it s deployed (but of
> course it s not good because it create his own directory in the same
> level as ROOT)

If you are trying to deploy a webapp as the "root" webapp (i.e. one that
does not require any context name as part of the URL (like /my-app/...),
then you need to put it in the "deploy" directory -- the same place
where the ROOT directory is, and call it ROOT.war.

You might also want to remove the "ROOT" directory before you try to
deploy that WAR file, as they will undoubtedly conflict.


View raw message