tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: Work & temp queries-tomcat 6
Date Mon, 03 Feb 2014 22:26:31 GMT
Two corrections to what Chris wrote

2014-01-30 Christopher Schultz <>:
> On 1/30/14, 12:53 PM, wrote:
>> how work & temp is being used by a Tomcat ??
> The temp dir is required by the servlet spec. I don't believe Tomcat
> uses it for anything. The work directory is used to cache resources
> from WAR files, to compile .jsp files into .java and ultimately .class
> files, etc.

The "work" directory is created automatically.

The "temp" directory is not created automatically (to my surprise).

The "temp" directory is just the value that is configured by default
for "" system property by Tomcat startup scripts.

Tomcat code itself does not use this directory, but 3rd party
libraries or JRE may use it.

If "temp" directory does not exist, the following is logged:

... SEVERE [main] org.apache.catalina.startup.Catalina.initDirs Cannot
find specified temporary folder at <catalina.base path

>> The temp dir is required by the servlet spec.

That is a different one. The temporary directory per servlet spec that
is ServletContext.getAttribute(ServletContext.TEMPDIR) is different
for each web application.

In Tomcat those are at work/<Engine name>/<Host name>/<webapp name>

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message