Hi Mark

Thanks for getting back with me.  :-)

markt> What is the setting for unpackWARs for Host?

These are the host settings in server.xml:

name="localhost"
appBase="webapps"
unpackWARs="true"
autoDeploy="true"
deployOnStartup="false"

markt> Running directly from a WAR (with unpackWARs="false"
markt> file will impact performance. It looks as if something
markt> is unpacking the WAR to the temp directory.

Where is it supposed to unpack the WAR files to?  I would have thought the work 
folder.

markt> Tomcat does provide the org.apache.catalina.webresources.
markt> ExtractingRoot resources implementation to help alleviate
markt> performance issues in this case but that should only
markt> extract the JARs in WEB-INF/lib and location they are
markt> extracted to should be under the work directory and include
markt> "application-jars" in the path.

OK good to know that at least for JAR's the "normal" place is the work folder 
and *not* the temp folder.

markt> Maybe some custom "unpack to temp" code?

That's what I'm afraid of.  :-\  What's weird(er) is that the default TC apps 
like docs and manager are copied to the temp folder too.  Also, the subfolders 
start with a number, like "0-app1", "4-docs", and "5-manager".  Does that 
provide a clue, or is that just normal?

Could the destination for unpacking the WAR files be changed from default with 
a setting or an environment variable?

--
Cris Berneburg
CACI Senior Software Engineer

-----Original Message-----

cb> Sometimes we get strange errors after deployments to our
cb> test server.  We just "solved" some weirdness by manually
cb> cleaning out the TC temp folder(s) - again.

cb> Looking in our TC temp folder, I see subfolders that match
cb> all the webapps [...] Looking in a subfolder, like temp/
cb> 3-app4, it appears to be an exact copy of everything in the
cb> webapps/app4 folder, which is just the extracted app4.war
cb> file. [...] The temp/app4 folder does not seem to contain
cb> temporary files, like output files for Excel reports, etc.
cb> Same for the other subfolders.  Is that normal?

cb> I see references to the temp folder in tomcat8-stdout.x.log
cb> [...] Why is it trying to access files in the temp subfolder
cb> instead of the webapps subfolder?  (Looks like I have some
cb> app debugging to do?)


________________________________

This electronic message contains information from CACI International Inc or 
subsidiary companies, which may be company sensitive, proprietary, privileged 
or otherwise protected from disclosure. The information is intended to be used 
solely by the recipient(s) named above. If you are not an intended recipient, 
be aware that any review, disclosure, copying, distribution or use of this 
transmission or its contents is prohibited. If you have received this 
transmission in error, please notify the sender immediately.

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

Reply via email to