When running webtests, the storage location for the caching directory becomes /tmp (at least on my system running Ubuntu), which doesn’t have the right permissions -> exceptions.

The location of the cache is set to java.io.tmpdir by default. When running in a tomcat environment, this will be ./.servletapp/tomcat6x/temp/.
Because a webtest itself doesn’t run within tomcat, the java.io.tmpdir will be different (/tmp in case of Ubuntu).

We might want to make this a configurable option, or override the java.io.tmpdir property when running webtests.

See also: ehcache storage options.

Submitted on 9 December 2011 at 12:58

On 17 January 2012 at 15:09 Christoffer Gersen commented:

Fixed in revision 4890. EhCache overflow-to-disk is now disabled by default. To enable it again, the ehcachediskstorepath property can be set in application.ini. The appname is appended to the diskstore path. For example, ehcachediskstorepath=${java.io.tmpdir} will use /tmp/<appname>/ as the diskstore location (where java.io.tmpdir=/tmp).


On 17 January 2012 at 15:09 Christoffer Gersen closed this issue.

Log in to post comments