You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David kerber <dc...@verizon.net> on 2012/05/07 16:02:15 UTC

Webapp reading from .war rather than from exploded files

I have an app running in TC 5.5.25 on Windows Server 2008, which seems 
to be reading some text that I use for creating a page footer, from the 
unexploded .war file rather than from the file on disk.

My deployment procedure is that when I start TC, I let it explode the 
.war file, then I overwrite a single .txt file with a different one, 
which replaces the default information with a file customized for the 
specific installation.  It's just a 1-line (60 byte) file.  I deploy the 
.war file as both ROOT.war, and as a specific name.  Both work as 
expected except for this specific problem.

Most of the time it work, and in fact it was working last week.  This 
week, users who connect to the ROOT one (which is set as the default 
application) are seeing the default file, while the named one are seeing 
the customized information.  I have verified several times that the same 
.txt file is copied to both locations.

Is there something that would cause a ROOT webapp to read from its .war 
file even with the exploded files present?  unpackwars is set in both 
server.xml files, and the wars are unpacked on startup.

TIA!
D

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


Re: Webapp reading from .war rather than from exploded files

Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
On 07.05.2012 16:02, David kerber wrote:

> Is there something that would cause a ROOT webapp to read from its
> .war file even with the exploded files present?  unpackwars is set in
> both server.xml files, and the wars are unpacked on startup.

Maybe try to disable unpacking war files? Is it the option?
AFAIR Tomcat will not read/unpack war on startup when unpacked 
directory already exists.

-- 
Mikolaj Rydzewski <mi...@ceti.pl>

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