[Geoserver-users] GWC Caching Issue

Hi together

I try to cache my data with Geowebcache. The only problem I have is, that I
try to set the cache expiry tag, but it doesn't work. I set it to 120 for
testing purposes. Am I right that it should now regenerate the tiles every
120 seconds?

This is the logsnippet when I reload the gwc configuration:

01 Jun 14:14:10 INFO [util.XMLConfiguration] - Updating configuration from
1.0.1 to 1.0.2
01 Jun 14:14:10 INFO [util.XMLConfiguration] - Updating configuration from
1.0.2 to 1.1.0
01 Jun 14:14:10 INFO [util.XMLConfiguration] - cvc-complex-type.2.4.a:
Invalid content was found starting with element 'version'. One of
'{"http://geowebcache.org/schema/1.1.0":version,
"http://geowebcache.org/schema/1.1.0":backendTimeout,
"http://geowebcache.org/schema/1.1.0":cacheBypassAllowed,
"http://geowebcache.org/schema/1.1.0":layers\}' is expected.
01 Jun 14:14:10 INFO [util.XMLConfiguration] - Will try to use configuration
anyway.
01 Jun 14:14:10 INFO [layer.TileLayerDispatcher] - Adding layers from
/data/geoserver/gwc
01 Jun 14:14:10 INFO [layer.TileLayerDispatcher] - Adding: osm_cache
01 Jun 14:14:10 INFO [reload.ReloadRestlet] - Configuration reloaded. Read
13 layers from configuration resources.

Here is my geowebcache.xml:

<?xml version="1.0" encoding="utf-8"?>
<gwcConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;

xsi:noNamespaceSchemaLocation="http://geowebcache.org/schema/1.0.1/geowebcac
he.xsd"
                  xmlns="http://geowebcache.org/schema/1.0.1&quot;&gt;
<version>1.0.1</version>
<backendTimeout>120</backendTimeout>
<cacheBypassAllowed>true</cacheBypassAllowed>
<layers>
<wmsLayer>
  <name>osm_cache</name>
  <mimeFormats>
    <string>image/png</string>
  </mimeFormats>
  <grids>
    <entry>
      <srs>
        <number>900913</number>
      </srs>
      <grid>
        <srs>
          <number>900913</number>
        </srs>
        <dataBounds>
          <coords>
            <double>-2.003750834E7</double>
            <double>-2.003750834E7</double>
            <double>2.003750834E7</double>
            <double>2.003750834E7</double>
          </coords>
        </dataBounds>
        <gridBounds>
          <coords>
            <double>-2.003750834E7</double>
            <double>-2.003750834E7</double>
            <double>2.003750834E7</double>
            <double>2.003750834E7</double>
          </coords>
        </gridBounds>
      </grid>
    </entry>
    <entry>
      <srs>
        <number>4326</number>
      </srs>
      <grid>
        <srs>
          <number>4326</number>
        </srs>
        <dataBounds>
          <coords>
            <double>-180.0</double>
            <double>-90.0</double>
            <double>180.0</double>
            <double>90.0</double>
          </coords>
        </dataBounds>
        <gridBounds>
          <coords>
            <double>-180.0</double>
            <double>-90.0</double>
            <double>180.0</double>
            <double>90.0</double>
          </coords>
        </gridBounds>
        <!--
           This grid only allows zoom levels 0 through 20
        -->
        <zoomStart>0</zoomStart>
        <zoomStop>20</zoomStop>
      </grid>
    </entry>

  </grids>
  <wmsUrl>
    <string>http://localhost/geoserver/wms&lt;/string&gt;
  </wmsUrl>
  <wmsLayers>osm</wmsLayers>
  <metaWidthHeight>
    <int>3</int>
    <int>3</int>
  </metaWidthHeight>
  <tiled>true</tiled>
  <transparent>true</transparent>
  <bgColor></bgColor>
  <palette></palette>
  <expireCache>120</expireCache>
  <expireClients>240</expireClients>
</wmsLayer>
</layers>
</gwcConfiguration>

It should, but it's been a long time since I've tested it. Is this GeoServer 1.7.4 ?

I will definitely have a look, but it's unlikely that I will get to it before next week.

-Arne

Fabio Renggli wrote:

Hi together

I try to cache my data with Geowebcache. The only problem I have is, that I
try to set the cache expiry tag, but it doesn't work. I set it to 120 for
testing purposes. Am I right that it should now regenerate the tiles every
120 seconds?

This is the logsnippet when I reload the gwc configuration:

01 Jun 14:14:10 INFO [util.XMLConfiguration] - Updating configuration from
1.0.1 to 1.0.2
01 Jun 14:14:10 INFO [util.XMLConfiguration] - Updating configuration from
1.0.2 to 1.1.0
01 Jun 14:14:10 INFO [util.XMLConfiguration] - cvc-complex-type.2.4.a:
Invalid content was found starting with element 'version'. One of
'{"http://geowebcache.org/schema/1.1.0&quot;:version,
"http://geowebcache.org/schema/1.1.0&quot;:backendTimeout,
"http://geowebcache.org/schema/1.1.0&quot;:cacheBypassAllowed,
"http://geowebcache.org/schema/1.1.0&quot;:layers\}' is expected.
01 Jun 14:14:10 INFO [util.XMLConfiguration] - Will try to use configuration
anyway.
01 Jun 14:14:10 INFO [layer.TileLayerDispatcher] - Adding layers from
/data/geoserver/gwc
01 Jun 14:14:10 INFO [layer.TileLayerDispatcher] - Adding: osm_cache
01 Jun 14:14:10 INFO [reload.ReloadRestlet] - Configuration reloaded. Read
13 layers from configuration resources.

Here is my geowebcache.xml:

<?xml version="1.0" encoding="utf-8"?>
<gwcConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:noNamespaceSchemaLocation="http://geowebcache.org/schema/1.0.1/geowebcac
he.xsd" xmlns="http://geowebcache.org/schema/1.0.1&quot;&gt;
<version>1.0.1</version>
<backendTimeout>120</backendTimeout>
<cacheBypassAllowed>true</cacheBypassAllowed>
<layers>
<wmsLayer>
  <name>osm_cache</name>
  <mimeFormats>
    <string>image/png</string>
  </mimeFormats>
  <grids>
    <entry>
      <srs>
        <number>900913</number>
      </srs>
      <grid>
        <srs>
          <number>900913</number>
        </srs>
        <dataBounds>
          <coords>
            <double>-2.003750834E7</double>
            <double>2.003750834E7</double>
          </coords>
        </dataBounds>
        <gridBounds>
          <coords>
            <double>-2.003750834E7</double>
            <double>2.003750834E7</double>
          </coords>
        </gridBounds>
      </grid>
    </entry>
    <entry>
      <srs>
        <number>4326</number>
      </srs>
      <grid>
        <srs>
          <number>4326</number>
        </srs>
        <dataBounds>
          <coords>
            <double>-180.0</double>
            <double>-90.0</double>
            <double>180.0</double>
            <double>90.0</double>
          </coords>
        </dataBounds>
        <gridBounds>
          <coords>
            <double>-180.0</double>
            <double>-90.0</double>
            <double>180.0</double>
            <double>90.0</double>
          </coords>
        </gridBounds>
        <!-- This grid only allows zoom levels 0 through 20
        -->
        <zoomStart>0</zoomStart>
        <zoomStop>20</zoomStop>
      </grid>
    </entry>

  </grids>
  <wmsUrl>
    <string>http://localhost/geoserver/wms&lt;/string&gt;
  </wmsUrl>
  <wmsLayers>osm</wmsLayers>
  <metaWidthHeight>
    <int>3</int>
  </metaWidthHeight>
  <tiled>true</tiled>
  <transparent>true</transparent>
  <bgColor></bgColor>
  <palette></palette>
  <expireCache>120</expireCache>
  <expireClients>240</expireClients>
</wmsLayer>
</layers>
</gwcConfiguration>

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  

Hi Arne

Yes it is 1.7.4. Can you explain me what this snippet means? Because I'm
pretty sure that my xml ist ok with the standard.

01 Jun 14:14:10 INFO [util.XMLConfiguration] - cvc-complex-type.2.4.a:

Invalid content was found starting with element 'version'. One of
'{"http://geowebcache.org/schema/1.1.0&quot;:version,
"http://geowebcache.org/schema/1.1.0&quot;:backendTimeout,
"http://geowebcache.org/schema/1.1.0&quot;:cacheBypassAllowed,
"http://geowebcache.org/schema/1.1.0&quot;:layers\}' is expected.

-----Original Message-----
From: Arne Kepp [mailto:ak@anonymised.com]
Sent: Mittwoch, 3. Juni 2009 23:30
To: Renggli Fabio (frenggli@anonymised.com); geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GWC Caching Issue

It should, but it's been a long time since I've tested it. Is this
GeoServer 1.7.4 ?

I will definitely have a look, but it's unlikely that I will get to it
before next week.

-Arne

Fabio Renggli wrote:

Hi together

I try to cache my data with Geowebcache. The only problem I have is, that

I

try to set the cache expiry tag, but it doesn't work. I set it to 120 for
testing purposes. Am I right that it should now regenerate the tiles every
120 seconds?

This is the logsnippet when I reload the gwc configuration:

01 Jun 14:14:10 INFO [util.XMLConfiguration] - Updating configuration from
1.0.1 to 1.0.2
01 Jun 14:14:10 INFO [util.XMLConfiguration] - Updating configuration from
1.0.2 to 1.1.0
01 Jun 14:14:10 INFO [util.XMLConfiguration] - cvc-complex-type.2.4.a:
Invalid content was found starting with element 'version'. One of
'{"http://geowebcache.org/schema/1.1.0&quot;:version,
"http://geowebcache.org/schema/1.1.0&quot;:backendTimeout,
"http://geowebcache.org/schema/1.1.0&quot;:cacheBypassAllowed,
"http://geowebcache.org/schema/1.1.0&quot;:layers\}' is expected.
01 Jun 14:14:10 INFO [util.XMLConfiguration] - Will try to use

configuration

anyway.
01 Jun 14:14:10 INFO [layer.TileLayerDispatcher] - Adding layers from
/data/geoserver/gwc
01 Jun 14:14:10 INFO [layer.TileLayerDispatcher] - Adding: osm_cache
01 Jun 14:14:10 INFO [reload.ReloadRestlet] - Configuration reloaded. Read
13 layers from configuration resources.

Here is my geowebcache.xml:

<?xml version="1.0" encoding="utf-8"?>
<gwcConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;

xsi:noNamespaceSchemaLocation="http://geowebcache.org/schema/1.0.1/geowebcac

he.xsd"
                  xmlns="http://geowebcache.org/schema/1.0.1&quot;&gt;
<version>1.0.1</version>
<backendTimeout>120</backendTimeout>
<cacheBypassAllowed>true</cacheBypassAllowed>
<layers>
<wmsLayer>
  <name>osm_cache</name>
  <mimeFormats>
    <string>image/png</string>
  </mimeFormats>
  <grids>
    <entry>
      <srs>
        <number>900913</number>
      </srs>
      <grid>
        <srs>
          <number>900913</number>
        </srs>
        <dataBounds>
          <coords>
            <double>-2.003750834E7</double>
            <double>-2.003750834E7</double>
            <double>2.003750834E7</double>
            <double>2.003750834E7</double>
          </coords>
        </dataBounds>
        <gridBounds>
          <coords>
            <double>-2.003750834E7</double>
            <double>-2.003750834E7</double>
            <double>2.003750834E7</double>
            <double>2.003750834E7</double>
          </coords>
        </gridBounds>
      </grid>
    </entry>
    <entry>
      <srs>
        <number>4326</number>
      </srs>
      <grid>
        <srs>
          <number>4326</number>
        </srs>
        <dataBounds>
          <coords>
            <double>-180.0</double>
            <double>-90.0</double>
            <double>180.0</double>
            <double>90.0</double>
          </coords>
        </dataBounds>
        <gridBounds>
          <coords>
            <double>-180.0</double>
            <double>-90.0</double>
            <double>180.0</double>
            <double>90.0</double>
          </coords>
        </gridBounds>
        <!--
           This grid only allows zoom levels 0 through 20
        -->
        <zoomStart>0</zoomStart>
        <zoomStop>20</zoomStop>
      </grid>
    </entry>

  </grids>
  <wmsUrl>
    <string>http://localhost/geoserver/wms&lt;/string&gt;
  </wmsUrl>
  <wmsLayers>osm</wmsLayers>
  <metaWidthHeight>
    <int>3</int>
    <int>3</int>
  </metaWidthHeight>
  <tiled>true</tiled>
  <transparent>true</transparent>
  <bgColor></bgColor>
  <palette></palette>
  <expireCache>120</expireCache>
  <expireClients>240</expireClients>
</wmsLayer>
</layers>
</gwcConfiguration>

----------------------------------------------------------------------------
--

OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  

Looks like you've got 1.1.0 elements in a file that says it's 1.0.1, and then that gets mangled a bit by XSL. In most cases XStream doesn't care, but I intend to use your configuration when I have time to test, to cover that aspect too.

-Arne

Fabio Renggli wrote:

Hi Arne

Yes it is 1.7.4. Can you explain me what this snippet means? Because I'm
pretty sure that my xml ist ok with the standard.

01 Jun 14:14:10 INFO [util.XMLConfiguration] - cvc-complex-type.2.4.a:
  

Invalid content was found starting with element 'version'. One of '{"http://geowebcache.org/schema/1.1.0&quot;:version,
"http://geowebcache.org/schema/1.1.0&quot;:backendTimeout,
"http://geowebcache.org/schema/1.1.0&quot;:cacheBypassAllowed,
"http://geowebcache.org/schema/1.1.0&quot;:layers\}' is expected.
    
-----Original Message-----
From: Arne Kepp [mailto:ak@anonymised.com] Sent: Mittwoch, 3. Juni 2009 23:30
To: Renggli Fabio (frenggli@anonymised.com); geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GWC Caching Issue

It should, but it's been a long time since I've tested it. Is this GeoServer 1.7.4 ?

I will definitely have a look, but it's unlikely that I will get to it before next week.

-Arne

Fabio Renggli wrote:
  

Hi together

I try to cache my data with Geowebcache. The only problem I have is, that
    

I
  

try to set the cache expiry tag, but it doesn't work. I set it to 120 for
testing purposes. Am I right that it should now regenerate the tiles every
120 seconds?

This is the logsnippet when I reload the gwc configuration:

01 Jun 14:14:10 INFO [util.XMLConfiguration] - Updating configuration from
1.0.1 to 1.0.2
01 Jun 14:14:10 INFO [util.XMLConfiguration] - Updating configuration from
1.0.2 to 1.1.0
01 Jun 14:14:10 INFO [util.XMLConfiguration] - cvc-complex-type.2.4.a:
Invalid content was found starting with element 'version'. One of
'{"http://geowebcache.org/schema/1.1.0&quot;:version,
"http://geowebcache.org/schema/1.1.0&quot;:backendTimeout,
"http://geowebcache.org/schema/1.1.0&quot;:cacheBypassAllowed,
"http://geowebcache.org/schema/1.1.0&quot;:layers\}' is expected.
01 Jun 14:14:10 INFO [util.XMLConfiguration] - Will try to use
    

configuration
  

anyway.
01 Jun 14:14:10 INFO [layer.TileLayerDispatcher] - Adding layers from
/data/geoserver/gwc
01 Jun 14:14:10 INFO [layer.TileLayerDispatcher] - Adding: osm_cache
01 Jun 14:14:10 INFO [reload.ReloadRestlet] - Configuration reloaded. Read
13 layers from configuration resources.

Here is my geowebcache.xml:

<?xml version="1.0" encoding="utf-8"?>
<gwcConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;

xsi:noNamespaceSchemaLocation="http://geowebcache.org/schema/1.0.1/geowebcac
  

he.xsd" xmlns="http://geowebcache.org/schema/1.0.1&quot;&gt;
<version>1.0.1</version>
<backendTimeout>120</backendTimeout>
<cacheBypassAllowed>true</cacheBypassAllowed>
<layers>
<wmsLayer>
  <name>osm_cache</name>
  <mimeFormats>
    <string>image/png</string>
  </mimeFormats>
  <grids>
    <entry>
      <srs>
        <number>900913</number>
      </srs>
      <grid>
        <srs>
          <number>900913</number>
        </srs>
        <dataBounds>
          <coords>
            <double>-2.003750834E7</double>
            <double>2.003750834E7</double>
          </coords>
        </dataBounds>
        <gridBounds>
          <coords>
            <double>-2.003750834E7</double>
            <double>2.003750834E7</double>
          </coords>
        </gridBounds>
      </grid>
    </entry>
    <entry>
      <srs>
        <number>4326</number>
      </srs>
      <grid>
        <srs>
          <number>4326</number>
        </srs>
        <dataBounds>
          <coords>
            <double>-180.0</double>
            <double>-90.0</double>
            <double>180.0</double>
            <double>90.0</double>
          </coords>
        </dataBounds>
        <gridBounds>
          <coords>
            <double>-180.0</double>
            <double>-90.0</double>
            <double>180.0</double>
            <double>90.0</double>
          </coords>
        </gridBounds>
        <!-- This grid only allows zoom levels 0 through 20
        -->
        <zoomStart>0</zoomStart>
        <zoomStop>20</zoomStop>
      </grid>
    </entry>

  </grids>
  <wmsUrl>
    <string>http://localhost/geoserver/wms&lt;/string&gt;
  </wmsUrl>
  <wmsLayers>osm</wmsLayers>
  <metaWidthHeight>
    <int>3</int>
  </metaWidthHeight>
  <tiled>true</tiled>
  <transparent>true</transparent>
  <bgColor></bgColor>
  <palette></palette>
  <expireCache>120</expireCache>
  <expireClients>240</expireClients>
</wmsLayer>
</layers>
</gwcConfiguration>

----------------------------------------------------------------------------
--
  

OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users