Using Geoserver 2.1.1 on Windows 2008 RC2 Server we experienced some problems in relocating the folder for GeoWeb Cache.
We followed the instructions found here:
…and added the following to WEB-INF/web.xml
<!—Add gwc on an other than default folder →
GEOWEBCACHE_CACHE_DIR
D:\gwc_cache_dir
We created an empty D:\gwc_cache_dir and restarted Geoserver. Unfortunately it never started so we checked permissions and tried to create a subdir called gwc – but still no success so we removed the config from web.xml and restarted geoserver. This at put us back on square one – which was good for something J
What could be wrong? Docs problem, or did we mess up somewhere?
Cheers!
Ragnvald
check the logs (/logs/geosevrer.log)
At startup time you should get a message like:
INFO [storage.DefaultStorageFinder] ****************************************************************************************************************************
INFO [storage.DefaultStorageFinder] - *** Found Servlet context parameter GEOWEBCACHE_CACHE_DIR set to /home/groldan/DATA/tmp, using it as the default prefix. ***
INFO [storage.DefaultStorageFinder] - ****************************************************************************************************************************
If that doesn’t happen try with GeoServer 2.1.2, you might have been caught by the following issue: <https://github.com/GeoWebCache/geowebcache/issues/64>
On Wed, Oct 19, 2011 at 7:47 PM, Ragnvald Larsen <Ragnvald.Larsen@anonymised.com> wrote:
GEOWEBCACHE_CACHE_DIR
D:\gwc_cache_dir
–
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.