[Geoserver-users] Geoserver and GWC configuration

Hi,
Im using GeoServer 1.7.1 and its accompanying GWC with Tomcat and Openlayers.
When i use the GWC demo to seed an image it stores it in
C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\geowebcache.
The GeoServer web.xml lists the

GEOSERVER_DATA_DIR

C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS

PROXY_BASE_URL

http://82.58.146.45/

This configuration is unlike any of the documentation Ive read.

Does it need to be reconfigured in order for OpenLayers to find the seeded image? If so whats the ideal configuration?

Thanks Chris

Hi Chris,

not sure I follow. OpenLayers is not directly accessing files on your harddrive, that would be a security issue. The gwc plugin in GeoServer receives the WMS-C request, reads the file from disk and streams it to the client.

The GEOSERVER_DATA_DIR value looks weird, like something a developer would use while testing. By default that variable should be commented out anyway. Are you sure this is an official distribution of GeoServer 1.7.1?

I'm guessing you dont have a directory like C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS , so gwc reverts to the temp directory instead. If you change GEOSERVER_DATA_DIR to something that actually exists, the tiles should end up in %GEOSERVER_DATA_DIR%/gwc

Tiles you have already seeded can be moved.

Hope this helps,
-Arne

chris Wild wrote:

Hi,
Im using GeoServer 1.7.1 and its accompanying GWC with Tomcat and Openlayers.
When i use the GWC demo to seed an image it stores it in
C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\geowebcache.
The GeoServer web.xml lists the

<param-name>GEOSERVER_DATA_DIR</param-name>

<param-value>C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS</param-value>

<context-param>

<param-name>PROXY_BASE_URL</param-name>

<param-value>http://82.58.146.45/&lt;/param\-value&gt;

</context-param>

This configuration is unlike any of the documentation Ive read.

Does it need to be reconfigured in order for OpenLayers to find the seeded image? If so whats the ideal configuration?

Thanks Chris

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

Hi Arne,
Thanks for your reply. Im new to open source and am trying to set up a mapping web service for our environmental group. My background is as a GIS user so its a steep learning curve and I really appreciate the help. I am happy to document my journey and contribute it back as a user story.
I downloaded Geoserver 1.7.1 from the official site and installed it in the webapps of tomcat so files are on my hard drive at this time till we move it to its website in production. All seems to run ok till this gwc issue.
No I don’t have a directory like C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS. So changed it to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data, put the geowebcahe.xml there also.
But not seeding anywhere now.The other seeded layers were all blank.
The actual data layers are sitting in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data\shapefiles or
data\coverages. The demo finds them all.
I
Here is the log file.
2009-04-02 09:45:52,203 INFO [util.GetCapabilitiesConfiguration] - Loaded 80 layers from http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-02 09:45:52,203 INFO [layer.TileLayerDispatcher] - Adding layers from http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-02 09:45:52,218 INFO [file.FileCache] - Found System environment variable GEOWEBCACHE_CACHE_DIR set to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data, using it as the default prefix.
2009-04-02 09:45:52,218 INFO [util.XMLConfiguration] - Configuration directory set to: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data
2009-04-02 09:45:52,265 ERROR [util.XMLConfiguration] - cvc-elt.1: Cannot find the declaration of element ‘gwcConfiguration’.
2009-04-02 09:45:52,265 INFO [util.XMLConfiguration] - Will try to use configuration anyway.
2009-04-02 09:45:52,625 INFO [layer.TileLayerDispatcher] - Adding layers from C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data
2009-04-02 09:48:30,781 WARN [cache.CacheFactory] - Received request for default cache, returning gwcCacheFile
2009-04-02 09:48:30,781 WARN [wms.WMSLayer] - cachePrefix not defined for layer topp:fencelinewgs, using default prefix and name instead: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data\topp_fencelinewgs
2009-04-02 09:48:30,781 INFO [file.FileCache] - C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data\topp_fencelinewgs did not exist, has been created recursively.
2009-04-02 09:48:55,703 INFO [rest.SeedTask] - Thread 0 begins seeding layer : topp:fencelinewgs

Then stalls and nothing happens.

Regards
Chris

On Thu, Apr 2, 2009 at 7:25 AM, Arne Kepp <ak@anonymised.com> wrote:

Hi Chris,

not sure I follow. OpenLayers is not directly accessing files on your harddrive, that would be a security issue. The gwc plugin in GeoServer receives the WMS-C request, reads the file from disk and streams it to the client.

The GEOSERVER_DATA_DIR value looks weird, like something a developer would use while testing. By default that variable should be commented out anyway. Are you sure this is an official distribution of GeoServer 1.7.1?

I’m guessing you dont have a directory like C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS , so gwc reverts to the temp directory instead. If you change GEOSERVER_DATA_DIR to something that actually exists, the tiles should end up in %GEOSERVER_DATA_DIR%/gwc

Tiles you have already seeded can be moved.

Hope this helps,
-Arne

chris Wild wrote:

Hi,
Im using GeoServer 1.7.1 and its accompanying GWC with Tomcat and Openlayers.
When i use the GWC demo to seed an image it stores it in
C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\geowebcache.
The GeoServer web.xml lists the

GEOSERVER_DATA_DIR

C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS

PROXY_BASE_URL

http://82.58.146.45/

This configuration is unlike any of the documentation Ive read.

Does it need to be reconfigured in order for OpenLayers to find the seeded image? If so whats the ideal configuration?

Thanks Chris


Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

Chris,

Please do not email me in three different ways about the same thing. We do a *lot* of community support, and Andrea definitely deserves a medal for spoiling GeoServer users, but we cannot always drop the things we are working on to help you. If that is insufficient then you should look into getting a support contract, see http://geoserver.org/display/GEOS/Commercial+Support

I don't know where "C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS" came from, it could be that you are running an old, nightly build with an accidental commit. Then you say you changed GEOSERVER_DATA_DIR, but the log below suggests you really set GEOWEBCACHE_CACHE_DIR. It's really hard to help you when there are so many other things that could be messed up, so I think you are better off starting from the beginning.

Here is what I suggest you do:
1) Copy your data directory to c:\geoserver_data
2) Uninstall GeoServer, remove the servlet and any leftovers from the data directory, so that Tomcat's webapps directory no longer contains a directory named geoserver
3) Grab the GeoServer 1.7.2* WAR from SourceForge and install it
4) Edit WEB-INF/web.xml , set GEOSERVER_DATA_DIR to c:\geoserver_data. Do NOT set GEOWEBCACHE_CACHE_DIR or anything like that
5) Restart Tomcat
6) Go to http://localhost:8080/geoserver/gwc/demo , test

7) Deal with the the proxy base url etc, once you are sure everything else works locally.

Hope this helps,
-Arne

*: Normally I would say 1.7.3a, but it looks like you're desperate for solid ground. 1.7.3a contains a new version of GWC with two observed bugs:
a) Doesn't look for geowebcache.xml in GEOSERVER_DATA_DIR\gwc , you have to put it in WEB-INF\classes
b) Potential resource leak in H2, only observed in intensive (synthetic) multi-threaded tests so far

chris Wild wrote:

Hi Arne,
Thanks for your reply. Im new to open source and am trying to set up a mapping web service for our environmental group. My background is as a GIS user so its a steep learning curve and I really appreciate the help. I am happy to document my journey and contribute it back as a user story.
I downloaded Geoserver 1.7.1 from the official site and installed it in the webapps of tomcat so files are on my hard drive at this time till we move it to its website in production. All seems to run ok till this gwc issue.
No I don't have a directory like C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS. So changed it to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data, put the geowebcahe.xml there also.
But not seeding anywhere now.The other seeded layers were all blank.
The actual data layers are sitting in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data\shapefiles or
data\coverages. The demo finds them all.
I
Here is the log file.
2009-04-02 09:45:52,203 INFO [util.GetCapabilitiesConfiguration] - Loaded 80 layers from http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-02 09:45:52,203 INFO [layer.TileLayerDispatcher] - Adding layers from http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-02 09:45:52,218 INFO [file.FileCache] - Found System environment variable GEOWEBCACHE_CACHE_DIR set to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data, using it as the default prefix.
2009-04-02 09:45:52,218 INFO [util.XMLConfiguration] - Configuration directory set to: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data
2009-04-02 09:45:52,265 ERROR [util.XMLConfiguration] - cvc-elt.1: Cannot find the declaration of element 'gwcConfiguration'.
2009-04-02 09:45:52,265 INFO [util.XMLConfiguration] - Will try to use configuration anyway.
2009-04-02 09:45:52,625 INFO [layer.TileLayerDispatcher] - Adding layers from C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data
2009-04-02 09:48:30,781 WARN [cache.CacheFactory] - Received request for default cache, returning gwcCacheFile
2009-04-02 09:48:30,781 WARN [wms.WMSLayer] - cachePrefix not defined for layer topp:fencelinewgs, using default prefix and name instead: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data\topp_fencelinewgs
2009-04-02 09:48:30,781 INFO [file.FileCache] - C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data\topp_fencelinewgs did not exist, has been created recursively.
2009-04-02 09:48:55,703 INFO [rest.SeedTask] - Thread 0 begins seeding layer : topp:fencelinewgs
Then stalls and nothing happens.
Regards
Chris

On Thu, Apr 2, 2009 at 7:25 AM, Arne Kepp <ak@anonymised.com <mailto:ak@anonymised.com>> wrote:

    Hi Chris,

    not sure I follow. OpenLayers is not directly accessing files on
    your harddrive, that would be a security issue. The gwc plugin in
    GeoServer receives the WMS-C request, reads the file from disk and
    streams it to the client.

    The GEOSERVER_DATA_DIR value looks weird, like something a
    developer would use while testing. By default that variable should
    be commented out anyway. Are you sure this is an official
    distribution of GeoServer 1.7.1?

    I'm guessing you dont have a directory like
    C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS , so
    gwc reverts to the temp directory instead. If you change
    GEOSERVER_DATA_DIR to something that actually exists, the tiles
    should end up in %GEOSERVER_DATA_DIR%/gwc

    Tiles you have already seeded can be moved.

    Hope this helps,
    -Arne

    chris Wild wrote:

        Hi,
        Im using GeoServer 1.7.1 and its accompanying GWC with Tomcat
        and Openlayers.
        When i use the GWC demo to seed an image it stores it in
        C:\Program Files\Apache Software Foundation\Tomcat
        6.0\temp\geowebcache.
        The GeoServer web.xml lists the

        <param-name>GEOSERVER_DATA_DIR</param-name>

        <param-value>C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS</param-value>

        <context-param>

        <param-name>PROXY_BASE_URL</param-name>

        <param-value>http://82.58.146.45/&lt;/param\-value&gt;

        </context-param>

        This configuration is unlike any of the documentation Ive read.

        Does it need to be reconfigured in order for OpenLayers to
        find the seeded image? If so whats the ideal configuration?

        Thanks Chris

    -- Arne Kepp
    OpenGeo - http://opengeo.org/&gt;
    Expert service straight from the developers

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

I agree. And the rest of the team should get at least silver ones..

- mika -

Arne Kepp kirjoitti:

, and Andrea definitely deserves a medal for spoiling GeoServer users,

Hi Arne,
Followed your instructions and re installed, and some improvement.
Editing the WEB-INF/web.xml makes no difference unfortunately, It won’t pick up the old data directory (but no worries I can reload data) and the seeding cache it is defaulting to
C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\geowebcache as before.

The demo displays the layers and seeds files to folders.
The image files are very small 2kb. Is that what would be expected after caching a 3Mb image at 4 zoom levels.? When I request the cached image with /geoserver/gwc/service/wms they are pink screens.

Here is the log.
2009-04-06 13:46:56,656 INFO [util.GetCapabilitiesConfiguration] - Loaded 24 layers from http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-06 13:46:56,656 INFO [layer.TileLayerDispatcher] - Adding layers from http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-06 13:46:56,656 ERROR [file.FileCache] - Found no usable default cache prefixes !!! Please set GEOWEBCACHE_CACHE_DIR
2009-04-06 13:46:56,656 WARN [file.FileCache] - Reverting to java.io.tmpdir: C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\geowebcache
2009-04-06 13:46:56,671 ERROR [util.XMLConfiguration] - Failed to find geowebcache.xml
2009-04-06 13:46:56,671 ERROR [layer.TileLayerDispatcher] - Unable to determine configuration directory.
2009-04-06 13:46:56,671 WARN [cache.CacheFactory] - Received request for default cache, returning gwcCacheFile
2009-04-06 13:46:56,671 INFO [file.FileCache] - Succesfully opened C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\geowebcache\tiger_poi for writing
2009-04-06 13:49:52,937 INFO [seed.SeedTask] - Thread 0 begins seeding layer : topp:RectifyTRC_App_wgs
2009-04-06 13:49:53,984 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 0 for layer topp:RectifyTRC_App_wgs (ca. 11.25%)
2009-04-06 13:49:54,171 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 1 for layer topp:RectifyTRC_App_wgs (ca. 22.50%)
2009-04-06 13:49:54,500 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 2 for layer topp:RectifyTRC_App_wgs (ca. 33.75%)
2009-04-06 13:49:54,906 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 3 for layer topp:RectifyTRC_App_wgs (ca. 45.0%)
2009-04-06 13:49:55,062 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 4 for layer topp:RectifyTRC_App_wgs (ca. 56.25%)
2009-04-06 13:49:55,062 INFO [seed.SeedTask] - Thread 0 completed (re)seeding layer topp:RectifyTRC_App_wgs after 45 tiles, of an estimated 5

Regards
Chris

On Fri, Apr 3, 2009 at 11:35 PM, Arne Kepp <ak@anonymised.com671…> wrote:

Chris,

Please do not email me in three different ways about the same thing. We do a lot of community support, and Andrea definitely deserves a medal for spoiling GeoServer users, but we cannot always drop the things we are working on to help you. If that is insufficient then you should look into getting a support contract, see http://geoserver.org/display/GEOS/Commercial+Support

I don’t know where “C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS” came from, it could be that you are running an old, nightly build with an accidental commit. Then you say you changed GEOSERVER_DATA_DIR, but the log below suggests you really set GEOWEBCACHE_CACHE_DIR. It’s really hard to help you when there are so many other things that could be messed up, so I think you are better off starting from the beginning.

Here is what I suggest you do:

  1. Copy your data directory to c:\geoserver_data

  2. Uninstall GeoServer, remove the servlet and any leftovers from the data directory, so that Tomcat’s webapps directory no longer contains a directory named geoserver

  3. Grab the GeoServer 1.7.2* WAR from SourceForge and install it

  4. Edit WEB-INF/web.xml , set GEOSERVER_DATA_DIR to c:\geoserver_data. Do NOT set GEOWEBCACHE_CACHE_DIR or anything like that

  5. Restart Tomcat

  6. Go to http://localhost:8080/geoserver/gwc/demo , test

  7. Deal with the the proxy base url etc, once you are sure everything else works locally.

Hope this helps,
-Arne

*: Normally I would say 1.7.3a, but it looks like you’re desperate for solid ground. 1.7.3a contains a new version of GWC with two observed bugs:
a) Doesn’t look for geowebcache.xml in GEOSERVER_DATA_DIR\gwc , you have to put it in WEB-INF\classes
b) Potential resource leak in H2, only observed in intensive (synthetic) multi-threaded tests so far

chris Wild wrote:

Hi Arne,
Thanks for your reply. Im new to open source and am trying to set up a mapping web service for our environmental group. My background is as a GIS user so its a steep learning curve and I really appreciate the help. I am happy to document my journey and contribute it back as a user story.
I downloaded Geoserver 1.7.1 from the official site and installed it in the webapps of tomcat so files are on my hard drive at this time till we move it to its website in production. All seems to run ok till this gwc issue.
No I don’t have a directory like C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS. So changed it to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data, put the geowebcahe.xml there also.
But not seeding anywhere now.The other seeded layers were all blank.
The actual data layers are sitting in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data\shapefiles or
data\coverages. The demo finds them all.
I
Here is the log file.
2009-04-02 09:45:52,203 INFO [util.GetCapabilitiesConfiguration] - Loaded 80 layers from http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-02 09:45:52,203 INFO [layer.TileLayerDispatcher] - Adding layers from http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-02 09:45:52,218 INFO [file.FileCache] - Found System environment variable GEOWEBCACHE_CACHE_DIR set to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data, using it as the default prefix.
2009-04-02 09:45:52,218 INFO [util.XMLConfiguration] - Configuration directory set to: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data
2009-04-02 09:45:52,265 ERROR [util.XMLConfiguration] - cvc-elt.1: Cannot find the declaration of element ‘gwcConfiguration’.
2009-04-02 09:45:52,265 INFO [util.XMLConfiguration] - Will try to use configuration anyway.
2009-04-02 09:45:52,625 INFO [layer.TileLayerDispatcher] - Adding layers from C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data
2009-04-02 09:48:30,781 WARN [cache.CacheFactory] - Received request for default cache, returning gwcCacheFile
2009-04-02 09:48:30,781 WARN [wms.WMSLayer] - cachePrefix not defined for layer topp:fencelinewgs, using default prefix and name instead: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data\topp_fencelinewgs
2009-04-02 09:48:30,781 INFO [file.FileCache] - C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\data\topp_fencelinewgs did not exist, has been created recursively.
2009-04-02 09:48:55,703 INFO [rest.SeedTask] - Thread 0 begins seeding layer : topp:fencelinewgs
Then stalls and nothing happens.
Regards
Chris

On Thu, Apr 2, 2009 at 7:25 AM, Arne Kepp <ak@anonymised.com mailto:[ak@anonymised.com](mailto:ak@anonymised.com)> wrote:

Hi Chris,

not sure I follow. OpenLayers is not directly accessing files on
your harddrive, that would be a security issue. The gwc plugin in
GeoServer receives the WMS-C request, reads the file from disk and
streams it to the client.

The GEOSERVER_DATA_DIR value looks weird, like something a
developer would use while testing. By default that variable should
be commented out anyway. Are you sure this is an official
distribution of GeoServer 1.7.1?

I’m guessing you dont have a directory like
C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS , so
gwc reverts to the temp directory instead. If you change
GEOSERVER_DATA_DIR to something that actually exists, the tiles
should end up in %GEOSERVER_DATA_DIR%/gwc

Tiles you have already seeded can be moved.

Hope this helps,
-Arne

chris Wild wrote:

Hi,
Im using GeoServer 1.7.1 and its accompanying GWC with Tomcat
and Openlayers.
When i use the GWC demo to seed an image it stores it in
C:\Program Files\Apache Software Foundation\Tomcat
6.0\temp\geowebcache.
The GeoServer web.xml lists the

GEOSERVER_DATA_DIR

C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS

PROXY_BASE_URL

http://82.58.146.45/

This configuration is unlike any of the documentation Ive read.

Does it need to be reconfigured in order for OpenLayers to
find the seeded image? If so whats the ideal configuration?

Thanks Chris

– Arne Kepp

OpenGeo - http://opengeo.org <http://opengeo.org/>

Expert service straight from the developers


Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

1) What version of GeoServer did you settle on? I'd expect 1.7.3 to revert to the temp directory, but not 1.7.2 (or 1.7.1 for that matter)

2) 2kbyte is small, but not unusual, depends on the image format and what it is showing.

3) Pink tiles:
- Is this while looking at the demos, or some other client you've switched to using gwc/service/wms ?
- Right click on one pink tile and do view image, it's probably an error message

-Arne

chris Wild wrote:

Hi Arne,
Followed your instructions and re installed, and some improvement.
Editing the WEB-INF/web.xml makes no difference unfortunately, It won't pick up the old data directory (but no worries I can reload data) and the seeding cache it is defaulting to
C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\geowebcache as before.

The demo displays the layers and seeds files to folders. The image files are very small 2kb. Is that what would be expected after caching a 3Mb image at 4 zoom levels.? When I request the cached image with /geoserver/gwc/service/wms they are pink screens.
Here is the log.
2009-04-06 13:46:56,656 INFO [util.GetCapabilitiesConfiguration] - Loaded 24 layers from http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-06 13:46:56,656 INFO [layer.TileLayerDispatcher] - Adding layers from http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-06 13:46:56,656 ERROR [file.FileCache] - Found no usable default cache prefixes !!! Please set GEOWEBCACHE_CACHE_DIR
2009-04-06 13:46:56,656 WARN [file.FileCache] - Reverting to java.io.tmpdir: C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\geowebcache
2009-04-06 13:46:56,671 ERROR [util.XMLConfiguration] - Failed to find geowebcache.xml
2009-04-06 13:46:56,671 ERROR [layer.TileLayerDispatcher] - Unable to determine configuration directory.
2009-04-06 13:46:56,671 WARN [cache.CacheFactory] - Received request for default cache, returning gwcCacheFile 2009-04-06 13:46:56,671 INFO [file.FileCache] - Succesfully opened C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\geowebcache\tiger_poi for writing
2009-04-06 13:49:52,937 INFO [seed.SeedTask] - Thread 0 begins seeding layer : topp:RectifyTRC_App_wgs
2009-04-06 13:49:53,984 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 0 for layer topp:RectifyTRC_App_wgs (ca. 11.25%)
2009-04-06 13:49:54,171 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 1 for layer topp:RectifyTRC_App_wgs (ca. 22.50%)
2009-04-06 13:49:54,500 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 2 for layer topp:RectifyTRC_App_wgs (ca. 33.75%)
2009-04-06 13:49:54,906 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 3 for layer topp:RectifyTRC_App_wgs (ca. 45.0%)
2009-04-06 13:49:55,062 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 4 for layer topp:RectifyTRC_App_wgs (ca. 56.25%)
2009-04-06 13:49:55,062 INFO [seed.SeedTask] - Thread 0 completed (re)seeding layer topp:RectifyTRC_App_wgs after 45 tiles, of an estimated 5
Regards
Chris

On Fri, Apr 3, 2009 at 11:35 PM, Arne Kepp <ak@anonymised.com <mailto:ak@anonymised.com>> wrote:

    Chris,

    Please do not email me in three different ways about the same
    thing. We do a *lot* of community support, and Andrea definitely
    deserves a medal for spoiling GeoServer users, but we cannot
    always drop the things we are working on to help you. If that is
    insufficient then you should look into getting a support contract,
    see http://geoserver.org/display/GEOS/Commercial+Support

    I don't know where
    "C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS"
    came from, it could be that you are running an old, nightly build
    with an accidental commit. Then you say you changed
    GEOSERVER_DATA_DIR, but the log below suggests you really set
    GEOWEBCACHE_CACHE_DIR. It's really hard to help you when there are
    so many other things that could be messed up, so I think you are
    better off starting from the beginning.

    Here is what I suggest you do:
    1) Copy your data directory to c:\geoserver_data
    2) Uninstall GeoServer, remove the servlet and any leftovers from
    the data directory, so that Tomcat's webapps directory no longer
    contains a directory named geoserver
    3) Grab the GeoServer 1.7.2* WAR from SourceForge and install it
    4) Edit WEB-INF/web.xml , set GEOSERVER_DATA_DIR to
    c:\geoserver_data. Do NOT set GEOWEBCACHE_CACHE_DIR or anything
    like that
    5) Restart Tomcat
    6) Go to http://localhost:8080/geoserver/gwc/demo , test

    7) Deal with the the proxy base url etc, once you are sure
    everything else works locally.

    Hope this helps,
    -Arne

    *: Normally I would say 1.7.3a, but it looks like you're desperate
    for solid ground. 1.7.3a contains a new version of GWC with two
    observed bugs:
    a) Doesn't look for geowebcache.xml in GEOSERVER_DATA_DIR\gwc ,
    you have to put it in WEB-INF\classes
    b) Potential resource leak in H2, only observed in intensive
    (synthetic) multi-threaded tests so far

    chris Wild wrote:

        Hi Arne,
        Thanks for your reply. Im new to open source and am trying to
        set up a mapping web service for our environmental group. My
        background is as a GIS user so its a steep learning curve and
        I really appreciate the help. I am happy to document my
        journey and contribute it back as a user story.
        I downloaded Geoserver 1.7.1 from the official site and
        installed it in the webapps of tomcat so files are on my hard
        drive at this time till we move it to its website in
        production. All seems to run ok till this gwc issue.
        No I don't have a directory like
        C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS.
        So changed it to C:\Program Files\Apache Software
        Foundation\Tomcat 6.0\webapps\geoserver\data\data, put the
        geowebcahe.xml there also.
        But not seeding anywhere now.The other seeded layers were all
        blank.
        The actual data layers are sitting in C:\Program Files\Apache
        Software Foundation\Tomcat
        6.0\webapps\geoserver\data\data\shapefiles or
        data\coverages. The demo finds them all.
        I
        Here is the log file.
        2009-04-02 09:45:52,203 INFO
        [util.GetCapabilitiesConfiguration] - Loaded 80 layers from
        http://localhost:8080/geoserver/wms?request=GetCapabilities
        2009-04-02 09:45:52,203 INFO [layer.TileLayerDispatcher] -
        Adding layers from
        http://localhost:8080/geoserver/wms?request=GetCapabilities
        2009-04-02 09:45:52,218 INFO [file.FileCache] - Found System
        environment variable GEOWEBCACHE_CACHE_DIR set to C:\Program
        Files\Apache Software Foundation\Tomcat
        6.0\webapps\geoserver\data\data, using it as the default prefix.
        2009-04-02 09:45:52,218 INFO [util.XMLConfiguration] -
        Configuration directory set to: C:\Program Files\Apache
        Software Foundation\Tomcat 6.0\webapps\geoserver\data\data
        2009-04-02 09:45:52,265 ERROR [util.XMLConfiguration] -
        cvc-elt.1: Cannot find the declaration of element
        'gwcConfiguration'.
        2009-04-02 09:45:52,265 INFO [util.XMLConfiguration] - Will
        try to use configuration anyway.
        2009-04-02 09:45:52,625 INFO [layer.TileLayerDispatcher] -
        Adding layers from C:\Program Files\Apache Software
        Foundation\Tomcat 6.0\webapps\geoserver\data\data
        2009-04-02 09:48:30,781 WARN [cache.CacheFactory] - Received
        request for default cache, returning gwcCacheFile
        2009-04-02 09:48:30,781 WARN [wms.WMSLayer] - cachePrefix not
        defined for layer topp:fencelinewgs, using default prefix and
        name instead: C:\Program Files\Apache Software
        Foundation\Tomcat
        6.0\webapps\geoserver\data\data\topp_fencelinewgs
        2009-04-02 09:48:30,781 INFO [file.FileCache] - C:\Program
        Files\Apache Software Foundation\Tomcat
        6.0\webapps\geoserver\data\data\topp_fencelinewgs did not
        exist, has been created recursively.
        2009-04-02 09:48:55,703 INFO [rest.SeedTask] - Thread 0 begins
        seeding layer : topp:fencelinewgs
         Then stalls and nothing happens.
         Regards
        Chris

        On Thu, Apr 2, 2009 at 7:25 AM, Arne Kepp <ak@anonymised.com
        <mailto:ak@anonymised.com> <mailto:ak@anonymised.com
        <mailto:ak@anonymised.com>>> wrote:

           Hi Chris,

           not sure I follow. OpenLayers is not directly accessing
        files on
           your harddrive, that would be a security issue. The gwc
        plugin in
           GeoServer receives the WMS-C request, reads the file from
        disk and
           streams it to the client.

           The GEOSERVER_DATA_DIR value looks weird, like something a
           developer would use while testing. By default that variable
        should
           be commented out anyway. Are you sure this is an official
           distribution of GeoServer 1.7.1?

           I'm guessing you dont have a directory like
                  C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS , so
           gwc reverts to the temp directory instead. If you change
           GEOSERVER_DATA_DIR to something that actually exists, the tiles
           should end up in %GEOSERVER_DATA_DIR%/gwc

           Tiles you have already seeded can be moved.

           Hope this helps,
           -Arne

           chris Wild wrote:

               Hi,
               Im using GeoServer 1.7.1 and its accompanying GWC with
        Tomcat
               and Openlayers.
               When i use the GWC demo to seed an image it stores it in
               C:\Program Files\Apache Software Foundation\Tomcat
               6.0\temp\geowebcache.
               The GeoServer web.xml lists the

               <param-name>GEOSERVER_DATA_DIR</param-name>

                      <param-value>C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS</param-value>

               <context-param>

               <param-name>PROXY_BASE_URL</param-name>

               <param-value>http://82.58.146.45/&lt;/param\-value&gt;

               </context-param>

               This configuration is unlike any of the documentation
        Ive read.

               Does it need to be reconfigured in order for OpenLayers to
               find the seeded image? If so whats the ideal configuration?

               Thanks Chris

           -- Arne Kepp
           OpenGeo - http://opengeo.org/&gt;
        <http://opengeo.org/&gt;

           Expert service straight from the developers

    -- Arne Kepp
    OpenGeo - http://opengeo.org/&gt;
    Expert service straight from the developers

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

Hi Arne,
1)Maybe my download proceedure incorrect, I downloaded 1.7.2 war and put it in the webb apps folder of Tomcat.
2)The last one I tried was a 10Mb aerial photo, but files still 2Kb and empty if viewed in photoshop.
3) Pink tiles when I call it through the openlayers html. I just altered the demo html for that image to call /geoserver/gwc/service/wms rather than /geoserver/wms.When I right click and view image no error message is visible.

Thanks heaps
Chris

On Mon, Apr 6, 2009 at 8:07 PM, Arne Kepp <ak@anonymised.com> wrote:

  1. What version of GeoServer did you settle on? I’d expect 1.7.3 to revert to the temp directory, but not 1.7.2 (or 1.7.1 for that matter)

  2. 2kbyte is small, but not unusual, depends on the image format and what it is showing.

  3. Pink tiles:

  • Is this while looking at the demos, or some other client you’ve switched to using gwc/service/wms ?
  • Right click on one pink tile and do view image, it’s probably an error message

-Arne

chris Wild wrote:

Hi Arne,
Followed your instructions and re installed, and some improvement.
Editing the WEB-INF/web.xml makes no difference unfortunately, It won’t pick up the old data directory (but no worries I can reload data) and the seeding cache it is defaulting to
C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\geowebcache as before.

The demo displays the layers and seeds files to folders. The image files are very small 2kb. Is that what would be expected after caching a 3Mb image at 4 zoom levels.? When I request the cached image with /geoserver/gwc/service/wms they are pink screens.
Here is the log.
2009-04-06 13:46:56,656 INFO [util.GetCapabilitiesConfiguration] - Loaded 24 layers from http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-06 13:46:56,656 INFO [layer.TileLayerDispatcher] - Adding layers from http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-06 13:46:56,656 ERROR [file.FileCache] - Found no usable default cache prefixes !!! Please set GEOWEBCACHE_CACHE_DIR
2009-04-06 13:46:56,656 WARN [file.FileCache] - Reverting to java.io.tmpdir: C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\geowebcache
2009-04-06 13:46:56,671 ERROR [util.XMLConfiguration] - Failed to find geowebcache.xml
2009-04-06 13:46:56,671 ERROR [layer.TileLayerDispatcher] - Unable to determine configuration directory.
2009-04-06 13:46:56,671 WARN [cache.CacheFactory] - Received request for default cache, returning gwcCacheFile 2009-04-06 13:46:56,671 INFO [file.FileCache] - Succesfully opened C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\geowebcache\tiger_poi for writing
2009-04-06 13:49:52,937 INFO [seed.SeedTask] - Thread 0 begins seeding layer : topp:RectifyTRC_App_wgs
2009-04-06 13:49:53,984 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 0 for layer topp:RectifyTRC_App_wgs (ca. 11.25%)
2009-04-06 13:49:54,171 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 1 for layer topp:RectifyTRC_App_wgs (ca. 22.50%)
2009-04-06 13:49:54,500 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 2 for layer topp:RectifyTRC_App_wgs (ca. 33.75%)
2009-04-06 13:49:54,906 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 3 for layer topp:RectifyTRC_App_wgs (ca. 45.0%)
2009-04-06 13:49:55,062 INFO [seed.SeedTask] - Thread 0 completed (re)seeding level 4 for layer topp:RectifyTRC_App_wgs (ca. 56.25%)
2009-04-06 13:49:55,062 INFO [seed.SeedTask] - Thread 0 completed (re)seeding layer topp:RectifyTRC_App_wgs after 45 tiles, of an estimated 5
Regards
Chris

On Fri, Apr 3, 2009 at 11:35 PM, Arne Kepp <ak@anonymised.com mailto:[ak@anonymised.com](mailto:ak@anonymised.com)> wrote:

Chris,

Please do not email me in three different ways about the same
thing. We do a lot of community support, and Andrea definitely
deserves a medal for spoiling GeoServer users, but we cannot
always drop the things we are working on to help you. If that is
insufficient then you should look into getting a support contract,
see http://geoserver.org/display/GEOS/Commercial+Support

I don’t know where
“C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS”
came from, it could be that you are running an old, nightly build
with an accidental commit. Then you say you changed
GEOSERVER_DATA_DIR, but the log below suggests you really set
GEOWEBCACHE_CACHE_DIR. It’s really hard to help you when there are
so many other things that could be messed up, so I think you are
better off starting from the beginning.

Here is what I suggest you do:

  1. Copy your data directory to c:\geoserver_data

  2. Uninstall GeoServer, remove the servlet and any leftovers from
    the data directory, so that Tomcat’s webapps directory no longer
    contains a directory named geoserver

  3. Grab the GeoServer 1.7.2* WAR from SourceForge and install it

  4. Edit WEB-INF/web.xml , set GEOSERVER_DATA_DIR to
    c:\geoserver_data. Do NOT set GEOWEBCACHE_CACHE_DIR or anything
    like that

  5. Restart Tomcat

  6. Go to http://localhost:8080/geoserver/gwc/demo , test

  7. Deal with the the proxy base url etc, once you are sure
    everything else works locally.

Hope this helps,
-Arne

*: Normally I would say 1.7.3a, but it looks like you’re desperate
for solid ground. 1.7.3a contains a new version of GWC with two
observed bugs:
a) Doesn’t look for geowebcache.xml in GEOSERVER_DATA_DIR\gwc ,
you have to put it in WEB-INF\classes
b) Potential resource leak in H2, only observed in intensive
(synthetic) multi-threaded tests so far

chris Wild wrote:

Hi Arne,
Thanks for your reply. Im new to open source and am trying to
set up a mapping web service for our environmental group. My
background is as a GIS user so its a steep learning curve and
I really appreciate the help. I am happy to document my
journey and contribute it back as a user story.
I downloaded Geoserver 1.7.1 from the official site and
installed it in the webapps of tomcat so files are on my hard
drive at this time till we move it to its website in
production. All seems to run ok till this gwc issue.
No I don’t have a directory like
C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS.
So changed it to C:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\geoserver\data\data, put the
geowebcahe.xml there also.
But not seeding anywhere now.The other seeded layers were all
blank.
The actual data layers are sitting in C:\Program Files\Apache
Software Foundation\Tomcat
6.0\webapps\geoserver\data\data\shapefiles or
data\coverages. The demo finds them all.
I
Here is the log file.
2009-04-02 09:45:52,203 INFO
[util.GetCapabilitiesConfiguration] - Loaded 80 layers from
http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-02 09:45:52,203 INFO [layer.TileLayerDispatcher] -
Adding layers from
http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-02 09:45:52,218 INFO [file.FileCache] - Found System
environment variable GEOWEBCACHE_CACHE_DIR set to C:\Program
Files\Apache Software Foundation\Tomcat
6.0\webapps\geoserver\data\data, using it as the default prefix.
2009-04-02 09:45:52,218 INFO [util.XMLConfiguration] -
Configuration directory set to: C:\Program Files\Apache
Software Foundation\Tomcat 6.0\webapps\geoserver\data\data
2009-04-02 09:45:52,265 ERROR [util.XMLConfiguration] -
cvc-elt.1: Cannot find the declaration of element
‘gwcConfiguration’.
2009-04-02 09:45:52,265 INFO [util.XMLConfiguration] - Will
try to use configuration anyway.
2009-04-02 09:45:52,625 INFO [layer.TileLayerDispatcher] -
Adding layers from C:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\geoserver\data\data
2009-04-02 09:48:30,781 WARN [cache.CacheFactory] - Received
request for default cache, returning gwcCacheFile
2009-04-02 09:48:30,781 WARN [wms.WMSLayer] - cachePrefix not
defined for layer topp:fencelinewgs, using default prefix and
name instead: C:\Program Files\Apache Software
Foundation\Tomcat
6.0\webapps\geoserver\data\data\topp_fencelinewgs
2009-04-02 09:48:30,781 INFO [file.FileCache] - C:\Program
Files\Apache Software Foundation\Tomcat
6.0\webapps\geoserver\data\data\topp_fencelinewgs did not
exist, has been created recursively.
2009-04-02 09:48:55,703 INFO [rest.SeedTask] - Thread 0 begins
seeding layer : topp:fencelinewgs
Then stalls and nothing happens.
Regards
Chris

On Thu, Apr 2, 2009 at 7:25 AM, Arne Kepp <ak@anonymised.com…

mailto:[ak@anonymised.com](mailto:ak@anonymised.com71...) <mailto:ak@anonymised.com

mailto:[ak@anonymised.com](mailto:ak@anonymised.com1...)>> wrote:

Hi Chris,

not sure I follow. OpenLayers is not directly accessing
files on
your harddrive, that would be a security issue. The gwc
plugin in
GeoServer receives the WMS-C request, reads the file from
disk and
streams it to the client.

The GEOSERVER_DATA_DIR value looks weird, like something a
developer would use while testing. By default that variable
should
be commented out anyway. Are you sure this is an official
distribution of GeoServer 1.7.1?

I’m guessing you dont have a directory like
C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS , so
gwc reverts to the temp directory instead. If you change
GEOSERVER_DATA_DIR to something that actually exists, the tiles
should end up in %GEOSERVER_DATA_DIR%/gwc

Tiles you have already seeded can be moved.

Hope this helps,
-Arne

chris Wild wrote:

Hi,
Im using GeoServer 1.7.1 and its accompanying GWC with
Tomcat
and Openlayers.
When i use the GWC demo to seed an image it stores it in
C:\Program Files\Apache Software Foundation\Tomcat
6.0\temp\geowebcache.
The GeoServer web.xml lists the

GEOSERVER_DATA_DIR

C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS

PROXY_BASE_URL

http://82.58.146.45/

This configuration is unlike any of the documentation
Ive read.

Does it need to be reconfigured in order for OpenLayers to
find the seeded image? If so whats the ideal configuration?

Thanks Chris

– Arne Kepp
OpenGeo - http://opengeo.org <http://opengeo.org/>
<http://opengeo.org/>

Expert service straight from the developers

– Arne Kepp
OpenGeo - http://opengeo.org <http://opengeo.org/>
Expert service straight from the developers


Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

1) Should say on the front page of GeoServer? There's more than one possible explanation regarding the use of the temp directory.

2) GWC 1.0.x (used in GS 1.7.2) appends header information to the files. This mean that the files will not be readable to Photoshop unless you slice away the first 32 bytes. PS should really throw a fit about this being an invalid image. (Maybe they're leftovers, generated by your previous installation?)

3) " just altered the demo html for that image to call /geoserver/gwc/service/wms rather than /geoserver/wms"

This will generally not work. Even if OpenLayers is requesting 256x256 tiles, the resolutions (coordinate units / pixel) and the tile boundaries have to match up too. Surprised right clicking does not give you the answer, but I am assuming an OpenLayers client with only one layer. (With multiple layers you have to use Firebug or something similar.)

Always use the OpenLayers demos generated by http://localhost:8080geoserver/gwc/demo while debugging, and if those work then you can copy those resolutions and bounds to your client.

-Arne

chris Wild wrote:

Hi Arne,
1)Maybe my download proceedure incorrect, I downloaded 1.7.2 war and put it in the webb apps folder of Tomcat.
2)The last one I tried was a 10Mb aerial photo, but files still 2Kb and empty if viewed in photoshop.
3) Pink tiles when I call it through the openlayers html. I just altered the demo html for that image to call /geoserver/gwc/service/wms rather than /geoserver/wms.When I right click and view image no error message is visible.
Thanks heaps
Chris

On Mon, Apr 6, 2009 at 8:07 PM, Arne Kepp <ak@anonymised.com <mailto:ak@anonymised.com>> wrote:

    1) What version of GeoServer did you settle on? I'd expect 1.7.3
    to revert to the temp directory, but not 1.7.2 (or 1.7.1 for that
    matter)

    2) 2kbyte is small, but not unusual, depends on the image format
    and what it is showing.

    3) Pink tiles:
    - Is this while looking at the demos, or some other client you've
    switched to using gwc/service/wms ?
    - Right click on one pink tile and do view image, it's probably an
    error message

    -Arne

    chris Wild wrote:

        Hi Arne,
        Followed your instructions and re installed, and some improvement.
        Editing the WEB-INF/web.xml makes no difference unfortunately,
        It won't pick up the old data directory (but no worries I can
        reload data) and the seeding cache it is defaulting to
        C:\Program Files\Apache Software Foundation\Tomcat
        6.0\temp\geowebcache as before.

        The demo displays the layers and seeds files to folders. The
        image files are very small 2kb. Is that what would be expected
        after caching a 3Mb image at 4 zoom levels.? When I request
        the cached image with /geoserver/gwc/service/wms they are pink
        screens.
         Here is the log.
        2009-04-06 13:46:56,656 INFO
        [util.GetCapabilitiesConfiguration] - Loaded 24 layers from
        http://localhost:8080/geoserver/wms?request=GetCapabilities
        2009-04-06 13:46:56,656 INFO [layer.TileLayerDispatcher] -
        Adding layers from
        http://localhost:8080/geoserver/wms?request=GetCapabilities
        2009-04-06 13:46:56,656 ERROR [file.FileCache] - Found no
        usable default cache prefixes !!! Please set GEOWEBCACHE_CACHE_DIR
        2009-04-06 13:46:56,656 WARN [file.FileCache] - Reverting to
        java.io.tmpdir: C:\Program Files\Apache Software
        Foundation\Tomcat 6.0\temp\geowebcache
        2009-04-06 13:46:56,671 ERROR [util.XMLConfiguration] - Failed
        to find geowebcache.xml
        2009-04-06 13:46:56,671 ERROR [layer.TileLayerDispatcher] -
        Unable to determine configuration directory.
        2009-04-06 13:46:56,671 WARN [cache.CacheFactory] - Received
        request for default cache, returning gwcCacheFile 2009-04-06
        13:46:56,671 INFO [file.FileCache] - Succesfully opened
        C:\Program Files\Apache Software Foundation\Tomcat
        6.0\temp\geowebcache\tiger_poi for writing
        2009-04-06 13:49:52,937 INFO [seed.SeedTask] - Thread 0 begins
        seeding layer : topp:RectifyTRC_App_wgs
        2009-04-06 13:49:53,984 INFO [seed.SeedTask] - Thread 0
        completed (re)seeding level 0 for layer
        topp:RectifyTRC_App_wgs (ca. 11.25%)
        2009-04-06 13:49:54,171 INFO [seed.SeedTask] - Thread 0
        completed (re)seeding level 1 for layer
        topp:RectifyTRC_App_wgs (ca. 22.50%)
        2009-04-06 13:49:54,500 INFO [seed.SeedTask] - Thread 0
        completed (re)seeding level 2 for layer
        topp:RectifyTRC_App_wgs (ca. 33.75%)
        2009-04-06 13:49:54,906 INFO [seed.SeedTask] - Thread 0
        completed (re)seeding level 3 for layer
        topp:RectifyTRC_App_wgs (ca. 45.0%)
        2009-04-06 13:49:55,062 INFO [seed.SeedTask] - Thread 0
        completed (re)seeding level 4 for layer
        topp:RectifyTRC_App_wgs (ca. 56.25%)
        2009-04-06 13:49:55,062 INFO [seed.SeedTask] - Thread 0
        completed (re)seeding layer topp:RectifyTRC_App_wgs after 45
        tiles, of an estimated 5
         Regards
        Chris

        On Fri, Apr 3, 2009 at 11:35 PM, Arne Kepp <ak@anonymised.com
        <mailto:ak@anonymised.com> <mailto:ak@anonymised.com
        <mailto:ak@anonymised.com>>> wrote:

           Chris,

           Please do not email me in three different ways about the same
           thing. We do a *lot* of community support, and Andrea
        definitely
           deserves a medal for spoiling GeoServer users, but we cannot
           always drop the things we are working on to help you. If
        that is
           insufficient then you should look into getting a support
        contract,
           see http://geoserver.org/display/GEOS/Commercial+Support

           I don't know where
           "C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS"
           came from, it could be that you are running an old, nightly
        build
           with an accidental commit. Then you say you changed
           GEOSERVER_DATA_DIR, but the log below suggests you really set
           GEOWEBCACHE_CACHE_DIR. It's really hard to help you when
        there are
           so many other things that could be messed up, so I think
        you are
           better off starting from the beginning.

           Here is what I suggest you do:
           1) Copy your data directory to c:\geoserver_data
           2) Uninstall GeoServer, remove the servlet and any
        leftovers from
           the data directory, so that Tomcat's webapps directory no
        longer
           contains a directory named geoserver
           3) Grab the GeoServer 1.7.2* WAR from SourceForge and
        install it
           4) Edit WEB-INF/web.xml , set GEOSERVER_DATA_DIR to
           c:\geoserver_data. Do NOT set GEOWEBCACHE_CACHE_DIR or anything
           like that
           5) Restart Tomcat
           6) Go to http://localhost:8080/geoserver/gwc/demo , test

           7) Deal with the the proxy base url etc, once you are sure
           everything else works locally.

           Hope this helps,
           -Arne

           *: Normally I would say 1.7.3a, but it looks like you're
        desperate
           for solid ground. 1.7.3a contains a new version of GWC with two
           observed bugs:
           a) Doesn't look for geowebcache.xml in GEOSERVER_DATA_DIR\gwc ,
           you have to put it in WEB-INF\classes
           b) Potential resource leak in H2, only observed in intensive
           (synthetic) multi-threaded tests so far

           chris Wild wrote:

               Hi Arne,
               Thanks for your reply. Im new to open source and am
        trying to
               set up a mapping web service for our environmental
        group. My
               background is as a GIS user so its a steep learning
        curve and
               I really appreciate the help. I am happy to document my
               journey and contribute it back as a user story.
               I downloaded Geoserver 1.7.1 from the official site and
               installed it in the webapps of tomcat so files are on
        my hard
               drive at this time till we move it to its website in
               production. All seems to run ok till this gwc issue.
               No I don't have a directory like
                      C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS.
               So changed it to C:\Program Files\Apache Software
               Foundation\Tomcat 6.0\webapps\geoserver\data\data, put the
               geowebcahe.xml there also.
               But not seeding anywhere now.The other seeded layers
        were all
               blank.
               The actual data layers are sitting in C:\Program
        Files\Apache
               Software Foundation\Tomcat
               6.0\webapps\geoserver\data\data\shapefiles or
               data\coverages. The demo finds them all.
               I
               Here is the log file.
               2009-04-02 09:45:52,203 INFO
               [util.GetCapabilitiesConfiguration] - Loaded 80 layers from
               http://localhost:8080/geoserver/wms?request=GetCapabilities
               2009-04-02 09:45:52,203 INFO [layer.TileLayerDispatcher] -
               Adding layers from
               http://localhost:8080/geoserver/wms?request=GetCapabilities
               2009-04-02 09:45:52,218 INFO [file.FileCache] - Found
        System
               environment variable GEOWEBCACHE_CACHE_DIR set to
        C:\Program
               Files\Apache Software Foundation\Tomcat
               6.0\webapps\geoserver\data\data, using it as the
        default prefix.
               2009-04-02 09:45:52,218 INFO [util.XMLConfiguration] -
               Configuration directory set to: C:\Program Files\Apache
               Software Foundation\Tomcat 6.0\webapps\geoserver\data\data
               2009-04-02 09:45:52,265 ERROR [util.XMLConfiguration] -
               cvc-elt.1: Cannot find the declaration of element
               'gwcConfiguration'.
               2009-04-02 09:45:52,265 INFO [util.XMLConfiguration] - Will
               try to use configuration anyway.
               2009-04-02 09:45:52,625 INFO [layer.TileLayerDispatcher] -
               Adding layers from C:\Program Files\Apache Software
               Foundation\Tomcat 6.0\webapps\geoserver\data\data
               2009-04-02 09:48:30,781 WARN [cache.CacheFactory] -
        Received
               request for default cache, returning gwcCacheFile
               2009-04-02 09:48:30,781 WARN [wms.WMSLayer] -
        cachePrefix not
               defined for layer topp:fencelinewgs, using default
        prefix and
               name instead: C:\Program Files\Apache Software
               Foundation\Tomcat
               6.0\webapps\geoserver\data\data\topp_fencelinewgs
               2009-04-02 09:48:30,781 INFO [file.FileCache] - C:\Program
               Files\Apache Software Foundation\Tomcat
               6.0\webapps\geoserver\data\data\topp_fencelinewgs did not
               exist, has been created recursively.
               2009-04-02 09:48:55,703 INFO [rest.SeedTask] - Thread 0
        begins
               seeding layer : topp:fencelinewgs
                Then stalls and nothing happens.
                Regards
               Chris

               On Thu, Apr 2, 2009 at 7:25 AM, Arne Kepp
        <ak@anonymised.com <mailto:ak@anonymised.com>
               <mailto:ak@anonymised.com>
        <mailto:ak@anonymised.com

               <mailto:ak@anonymised.com>>> wrote:

                  Hi Chris,

                  not sure I follow. OpenLayers is not directly accessing
               files on
                  your harddrive, that would be a security issue. The gwc
               plugin in
                  GeoServer receives the WMS-C request, reads the file
        from
               disk and
                  streams it to the client.

                  The GEOSERVER_DATA_DIR value looks weird, like
        something a
                  developer would use while testing. By default that
        variable
               should
                  be commented out anyway. Are you sure this is an
        official
                  distribution of GeoServer 1.7.1?

                  I'm guessing you dont have a directory like
                               C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS , so
                  gwc reverts to the temp directory instead. If you change
                  GEOSERVER_DATA_DIR to something that actually
        exists, the tiles
                  should end up in %GEOSERVER_DATA_DIR%/gwc

                  Tiles you have already seeded can be moved.

                  Hope this helps,
                  -Arne

                  chris Wild wrote:

                      Hi,
                      Im using GeoServer 1.7.1 and its accompanying
        GWC with
               Tomcat
                      and Openlayers.
                      When i use the GWC demo to seed an image it
        stores it in
                      C:\Program Files\Apache Software Foundation\Tomcat
                      6.0\temp\geowebcache.
                      The GeoServer web.xml lists the

                      <param-name>GEOSERVER_DATA_DIR</param-name>

                                   <param-value>C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS</param-value>

                      <context-param>

                      <param-name>PROXY_BASE_URL</param-name>

                      <param-value>http://82.58.146.45/&lt;/param\-value&gt;

                      </context-param>

                      This configuration is unlike any of the
        documentation
               Ive read.

                      Does it need to be reconfigured in order for
        OpenLayers to
                      find the seeded image? If so whats the ideal
        configuration?

                      Thanks Chris

                  -- Arne Kepp
                  OpenGeo - http://opengeo.org/&gt;
        <http://opengeo.org/&gt;
               <http://opengeo.org/&gt;

                  Expert service straight from the developers

           -- Arne Kepp
           OpenGeo - http://opengeo.org/&gt;
        <http://opengeo.org/&gt;
           Expert service straight from the developers

    -- Arne Kepp
    OpenGeo - http://opengeo.org/&gt;
    Expert service straight from the developers

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

  1. Yes its 1.7.2.
  2. Ok thats good to know. No had a thorough clean out so they’re not “leftovers, generated by your previous installation”
    3)“Always use the OpenLayers demos generated by http://localhost:8080geoserver/gwc/demo while debugging, and if those work then you can copy those resolutions and bounds to your client.”
    What I don’t understand here is, the image is in the demo list and I can view it ok prior to seeding but how do I know after seeding that its returning the seeded cached layer not the source layer it was displaying in the first place?
    Thanks for bearing with me.

Chris

On Tue, Apr 7, 2009 at 6:48 AM, Arne Kepp <ak@anonymised.com> wrote:

  1. Should say on the front page of GeoServer? There’s more than one possible explanation regarding the use of the temp directory.

  2. GWC 1.0.x (used in GS 1.7.2) appends header information to the files. This mean that the files will not be readable to Photoshop unless you slice away the first 32 bytes. PS should really throw a fit about this being an invalid image. (Maybe they’re leftovers, generated by your previous installation?)

  3. " just altered the demo html for that image to call /geoserver/gwc/service/wms rather than /geoserver/wms"

This will generally not work. Even if OpenLayers is requesting 256x256 tiles, the resolutions (coordinate units / pixel) and the tile boundaries have to match up too. Surprised right clicking does not give you the answer, but I am assuming an OpenLayers client with only one layer. (With multiple layers you have to use Firebug or something similar.)

Always use the OpenLayers demos generated by http://localhost:8080geoserver/gwc/demo while debugging, and if those work then you can copy those resolutions and bounds to your client.

-Arne

chris Wild wrote:

Hi Arne,

1)Maybe my download proceedure incorrect, I downloaded 1.7.2 war and put it in the webb apps folder of Tomcat.
2)The last one I tried was a 10Mb aerial photo, but files still 2Kb and empty if viewed in photoshop.
3) Pink tiles when I call it through the openlayers html. I just altered the demo html for that image to call /geoserver/gwc/service/wms rather than /geoserver/wms.When I right click and view image no error message is visible.
Thanks heaps
Chris

On Mon, Apr 6, 2009 at 8:07 PM, Arne Kepp <ak@anonymised.com mailto:[ak@anonymised.com](mailto:ak@anonymised.com)> wrote:

  1. What version of GeoServer did you settle on? I’d expect 1.7.3
    to revert to the temp directory, but not 1.7.2 (or 1.7.1 for that
    matter)

  2. 2kbyte is small, but not unusual, depends on the image format
    and what it is showing.

  3. Pink tiles:

  • Is this while looking at the demos, or some other client you’ve
    switched to using gwc/service/wms ?
  • Right click on one pink tile and do view image, it’s probably an
    error message

-Arne

chris Wild wrote:

Hi Arne,
Followed your instructions and re installed, and some improvement.
Editing the WEB-INF/web.xml makes no difference unfortunately,
It won’t pick up the old data directory (but no worries I can
reload data) and the seeding cache it is defaulting to
C:\Program Files\Apache Software Foundation\Tomcat
6.0\temp\geowebcache as before.

The demo displays the layers and seeds files to folders. The
image files are very small 2kb. Is that what would be expected
after caching a 3Mb image at 4 zoom levels.? When I request
the cached image with /geoserver/gwc/service/wms they are pink
screens.
Here is the log.
2009-04-06 13:46:56,656 INFO
[util.GetCapabilitiesConfiguration] - Loaded 24 layers from
http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-06 13:46:56,656 INFO [layer.TileLayerDispatcher] -
Adding layers from
http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-06 13:46:56,656 ERROR [file.FileCache] - Found no
usable default cache prefixes !!! Please set GEOWEBCACHE_CACHE_DIR
2009-04-06 13:46:56,656 WARN [file.FileCache] - Reverting to
java.io.tmpdir: C:\Program Files\Apache Software
Foundation\Tomcat 6.0\temp\geowebcache
2009-04-06 13:46:56,671 ERROR [util.XMLConfiguration] - Failed
to find geowebcache.xml
2009-04-06 13:46:56,671 ERROR [layer.TileLayerDispatcher] -
Unable to determine configuration directory.
2009-04-06 13:46:56,671 WARN [cache.CacheFactory] - Received
request for default cache, returning gwcCacheFile 2009-04-06
13:46:56,671 INFO [file.FileCache] - Succesfully opened
C:\Program Files\Apache Software Foundation\Tomcat
6.0\temp\geowebcache\tiger_poi for writing
2009-04-06 13:49:52,937 INFO [seed.SeedTask] - Thread 0 begins
seeding layer : topp:RectifyTRC_App_wgs
2009-04-06 13:49:53,984 INFO [seed.SeedTask] - Thread 0
completed (re)seeding level 0 for layer
topp:RectifyTRC_App_wgs (ca. 11.25%)
2009-04-06 13:49:54,171 INFO [seed.SeedTask] - Thread 0
completed (re)seeding level 1 for layer
topp:RectifyTRC_App_wgs (ca. 22.50%)
2009-04-06 13:49:54,500 INFO [seed.SeedTask] - Thread 0
completed (re)seeding level 2 for layer
topp:RectifyTRC_App_wgs (ca. 33.75%)
2009-04-06 13:49:54,906 INFO [seed.SeedTask] - Thread 0
completed (re)seeding level 3 for layer
topp:RectifyTRC_App_wgs (ca. 45.0%)
2009-04-06 13:49:55,062 INFO [seed.SeedTask] - Thread 0
completed (re)seeding level 4 for layer
topp:RectifyTRC_App_wgs (ca. 56.25%)
2009-04-06 13:49:55,062 INFO [seed.SeedTask] - Thread 0
completed (re)seeding layer topp:RectifyTRC_App_wgs after 45
tiles, of an estimated 5
Regards
Chris

On Fri, Apr 3, 2009 at 11:35 PM, Arne Kepp <ak@anonymised.com

mailto:[ak@anonymised.com](mailto:ak@anonymised.com) <mailto:ak@anonymised.com
mailto:[ak@anonymised.com](mailto:ak@anonymised.com)>> wrote:

Chris,

Please do not email me in three different ways about the same
thing. We do a lot of community support, and Andrea
definitely
deserves a medal for spoiling GeoServer users, but we cannot
always drop the things we are working on to help you. If
that is
insufficient then you should look into getting a support
contract,
see http://geoserver.org/display/GEOS/Commercial+Support

I don’t know where
“C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS”
came from, it could be that you are running an old, nightly
build
with an accidental commit. Then you say you changed
GEOSERVER_DATA_DIR, but the log below suggests you really set
GEOWEBCACHE_CACHE_DIR. It’s really hard to help you when
there are
so many other things that could be messed up, so I think
you are
better off starting from the beginning.

Here is what I suggest you do:

  1. Copy your data directory to c:\geoserver_data

  2. Uninstall GeoServer, remove the servlet and any
    leftovers from
    the data directory, so that Tomcat’s webapps directory no
    longer
    contains a directory named geoserver

  3. Grab the GeoServer 1.7.2* WAR from SourceForge and
    install it

  4. Edit WEB-INF/web.xml , set GEOSERVER_DATA_DIR to
    c:\geoserver_data. Do NOT set GEOWEBCACHE_CACHE_DIR or anything
    like that

  5. Restart Tomcat

  6. Go to http://localhost:8080/geoserver/gwc/demo , test

  7. Deal with the the proxy base url etc, once you are sure
    everything else works locally.

Hope this helps,
-Arne

*: Normally I would say 1.7.3a, but it looks like you’re
desperate
for solid ground. 1.7.3a contains a new version of GWC with two
observed bugs:
a) Doesn’t look for geowebcache.xml in GEOSERVER_DATA_DIR\gwc ,
you have to put it in WEB-INF\classes
b) Potential resource leak in H2, only observed in intensive
(synthetic) multi-threaded tests so far

chris Wild wrote:

Hi Arne,
Thanks for your reply. Im new to open source and am
trying to
set up a mapping web service for our environmental
group. My
background is as a GIS user so its a steep learning
curve and
I really appreciate the help. I am happy to document my
journey and contribute it back as a user story.
I downloaded Geoserver 1.7.1 from the official site and
installed it in the webapps of tomcat so files are on
my hard
drive at this time till we move it to its website in
production. All seems to run ok till this gwc issue.
No I don’t have a directory like
C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS.
So changed it to C:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\geoserver\data\data, put the
geowebcahe.xml there also.
But not seeding anywhere now.The other seeded layers
were all
blank.
The actual data layers are sitting in C:\Program
Files\Apache
Software Foundation\Tomcat
6.0\webapps\geoserver\data\data\shapefiles or
data\coverages. The demo finds them all.
I
Here is the log file.
2009-04-02 09:45:52,203 INFO
[util.GetCapabilitiesConfiguration] - Loaded 80 layers from
http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-02 09:45:52,203 INFO [layer.TileLayerDispatcher] -
Adding layers from
http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-02 09:45:52,218 INFO [file.FileCache] - Found
System
environment variable GEOWEBCACHE_CACHE_DIR set to
C:\Program
Files\Apache Software Foundation\Tomcat
6.0\webapps\geoserver\data\data, using it as the
default prefix.
2009-04-02 09:45:52,218 INFO [util.XMLConfiguration] -
Configuration directory set to: C:\Program Files\Apache
Software Foundation\Tomcat 6.0\webapps\geoserver\data\data
2009-04-02 09:45:52,265 ERROR [util.XMLConfiguration] -
cvc-elt.1: Cannot find the declaration of element
‘gwcConfiguration’.
2009-04-02 09:45:52,265 INFO [util.XMLConfiguration] - Will
try to use configuration anyway.
2009-04-02 09:45:52,625 INFO [layer.TileLayerDispatcher] -
Adding layers from C:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\geoserver\data\data
2009-04-02 09:48:30,781 WARN [cache.CacheFactory] -
Received
request for default cache, returning gwcCacheFile
2009-04-02 09:48:30,781 WARN [wms.WMSLayer] -
cachePrefix not
defined for layer topp:fencelinewgs, using default
prefix and
name instead: C:\Program Files\Apache Software
Foundation\Tomcat
6.0\webapps\geoserver\data\data\topp_fencelinewgs
2009-04-02 09:48:30,781 INFO [file.FileCache] - C:\Program
Files\Apache Software Foundation\Tomcat
6.0\webapps\geoserver\data\data\topp_fencelinewgs did not
exist, has been created recursively.
2009-04-02 09:48:55,703 INFO [rest.SeedTask] - Thread 0
begins
seeding layer : topp:fencelinewgs
Then stalls and nothing happens.
Regards
Chris

On Thu, Apr 2, 2009 at 7:25 AM, Arne Kepp
<ak@…1671… mailto:[ak@anonymised.com](mailto:ak@anonymised.com)
<mailto:ak@anonymised.com mailto:[ak@anonymised.com](mailto:ak@anonymised.com)>
<mailto:ak@anonymised.com mailto:[ak@anonymised.com](mailto:ak@anonymised.com)

<mailto:ak@anonymised.com mailto:[ak@anonymised.com](mailto:ak@anonymised.com)>>> wrote:

Hi Chris,

not sure I follow. OpenLayers is not directly accessing
files on
your harddrive, that would be a security issue. The gwc
plugin in
GeoServer receives the WMS-C request, reads the file
from
disk and
streams it to the client.

The GEOSERVER_DATA_DIR value looks weird, like
something a
developer would use while testing. By default that
variable
should
be commented out anyway. Are you sure this is an
official
distribution of GeoServer 1.7.1?

I’m guessing you dont have a directory like
C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS , so
gwc reverts to the temp directory instead. If you change
GEOSERVER_DATA_DIR to something that actually
exists, the tiles
should end up in %GEOSERVER_DATA_DIR%/gwc

Tiles you have already seeded can be moved.

Hope this helps,
-Arne

chris Wild wrote:

Hi,
Im using GeoServer 1.7.1 and its accompanying
GWC with
Tomcat
and Openlayers.
When i use the GWC demo to seed an image it
stores it in
C:\Program Files\Apache Software Foundation\Tomcat
6.0\temp\geowebcache.
The GeoServer web.xml lists the

GEOSERVER_DATA_DIR

C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS

PROXY_BASE_URL

http://82.58.146.45/

This configuration is unlike any of the
documentation
Ive read.

Does it need to be reconfigured in order for
OpenLayers to
find the seeded image? If so whats the ideal
configuration?

Thanks Chris

– Arne Kepp
OpenGeo - http://opengeo.org <http://opengeo.org/>
<http://opengeo.org/>
<http://opengeo.org/>

Expert service straight from the developers

– Arne Kepp
OpenGeo - http://opengeo.org <http://opengeo.org/>
<http://opengeo.org/>
Expert service straight from the developers

– Arne Kepp
OpenGeo - http://opengeo.org <http://opengeo.org/>
Expert service straight from the developers


Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

chris Wild wrote:

3)"Always use the OpenLayers demos generated by http://localhost:8080geoserver/gwc/demo while debugging, and if those work then you can copy those resolutions and bounds to your client."
What I don't understand here is, the image is in the demo list and I can view it ok prior to seeding but how do I know after seeding that its returning the seeded cached layer not the source layer it was displaying in the first place?
Thanks for bearing with me.
Chris

<snip the rest>

3) GeoWebCache acts like a proxy, so anything that comes out of /gwc/services is cached by default. If you get a tile, and if it wasn't cached before, it is now.

This way you don't have to preseed the entire map beforehand, clients will populate the cache as they go.

-Arne

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

Thats great, but how do I invoke the call through geowebcache. The instuctions
http://geoserver.org/display/GEOSDOC/5.+GWC±+GeoWebCache
say to use:

In general, using GeoWebCache with a tiling client only requires you to change the WMS URL. For example, if your application requests WMS tiles at the following URL:

http://[example.com:8080/geoserver/wms](http://example.com:8080/geoserver/wms)

To instead invoke GeoWebCache from a tiling client, use:

[http://example.com:8080/geoserver/gwc/service/wms](http://example.com:8080/geoserver/gwc/service/wms)
But you say in the previous email that won't work. So how do I request it in my html?
Thanks
Chris

On Tue, Apr 7, 2009 at 7:45 AM, Arne Kepp <ak@anonymised.com> wrote:

chris Wild wrote:

3)“Always use the OpenLayers demos generated by http://localhost:8080geoserver/gwc/demo while debugging, and if those work then you can copy those resolutions and bounds to your client.”
What I don’t understand here is, the image is in the demo list and I can view it ok prior to seeding but how do I know after seeding that its returning the seeded cached layer not the source layer it was displaying in the first place?
Thanks for bearing with me.
Chris

  1. GeoWebCache acts like a proxy, so anything that comes out of /gwc/services is cached by default. If you get a tile, and if it wasn’t cached before, it is now.

This way you don’t have to preseed the entire map beforehand, clients will populate the cache as they go.

-Arne


Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

That document was unfortunately somewhat imprecise, I've changed "tiling client" to the much heavier "tiling client that uses one of the global profiles of the WMS-C Tiling Client recommendations".

If it's an OpenLayers client, copy the Map and Layer definitions from the automatically generated demo, it's very concise.

If your HTML uses something else you have to make it conform to one of those profiles. On a low traffic server you can also drop GWC and use Squid or Varnish instead, which do not care about grids etc, but those have their own set of drawbacks.

-Arne

chris Wild wrote:

Thats great, but how do I invoke the call through geowebcache. The instuctions
http://geoserver.org/display/GEOSDOC/5.+GWC+-+GeoWebCache
say to use:

In general, using GeoWebCache with a tiling client only requires you to change the WMS URL. For example, if your application requests WMS tiles at the following URL:

http://example.com:8080/geoserver/wms

To instead invoke GeoWebCache from a tiling client, use:

http://example.com:8080/geoserver/gwc/service/wms
But you say in the previous email that won't work. So how do I request it in my html?
Thanks
Chris

  On Tue, Apr 7, 2009 at 7:45 AM, Arne Kepp <ak@anonymised.com <mailto:ak@anonymised.com>> wrote:

    chris Wild wrote:

        3)"Always use the OpenLayers demos generated by
        http://localhost:8080geoserver/gwc/demo while debugging, and
        if those work then you can copy those resolutions and bounds
        to your client."
        What I don't understand here is, the image is in the demo list
        and I can view it ok prior to seeding but how do I know after
        seeding that its returning the seeded cached layer not the
        source layer it was displaying in the first place?
        Thanks for bearing with me.
         Chris

    <snip the rest>

    3) GeoWebCache acts like a proxy, so anything that comes out of
    /gwc/services is cached by default. If you get a tile, and if it
    wasn't cached before, it is now.

    This way you don't have to preseed the entire map beforehand,
    clients will populate the cache as they go.

    -Arne

    -- Arne Kepp
    OpenGeo - http://opengeo.org/&gt;
    Expert service straight from the developers

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

I copied the Map and Layer definitions from the automatically generated demo and I get a screen divided into tiles but no image. The error message when view image in Firefox is
‘The file /C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/geoserver/openlayers/service/wms?LAYERS=topp:RectifyTRC_App_wgs&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=174.41113471984863,-39.44991946220398,174.4111454486847,-39.44990873336792&WIDTH=256&HEIGHT=256 cannot be found. Please check the location and try again.’
So the gwc demo can find the image but not the html?

On Tue, Apr 7, 2009 at 8:28 AM, Arne Kepp <ak@anonymised.com> wrote:

That document was unfortunately somewhat imprecise, I’ve changed “tiling client” to the much heavier “tiling client that uses one of the global profiles of the WMS-C Tiling Client recommendations”.

If it’s an OpenLayers client, copy the Map and Layer definitions from the automatically generated demo, it’s very concise.

If your HTML uses something else you have to make it conform to one of those profiles. On a low traffic server you can also drop GWC and use Squid or Varnish instead, which do not care about grids etc, but those have their own set of drawbacks.

-Arne

chris Wild wrote:

Thats great, but how do I invoke the call through geowebcache. The instuctions
http://geoserver.org/display/GEOSDOC/5.+GWC±+GeoWebCache
say to use:

In general, using GeoWebCache with a tiling client only requires you to change the WMS URL. For example, if your application requests WMS tiles at the following URL:

http://example.com:8080/geoserver/wms <http://example.com:8080/geoserver/wms>

To instead invoke GeoWebCache from a tiling client, use:

http://example.com:8080/geoserver/gwc/service/wms <http://example.com:8080/geoserver/gwc/service/wms>

But you say in the previous email that won’t work. So how do I request it in my html?
Thanks
Chris

On Tue, Apr 7, 2009 at 7:45 AM, Arne Kepp <ak@anonymised.com mailto:[ak@anonymised.com](mailto:ak@anonymised.com)> wrote:

chris Wild wrote:

3)“Always use the OpenLayers demos generated by
http://localhost:8080geoserver/gwc/demo while debugging, and
if those work then you can copy those resolutions and bounds
to your client.”
What I don’t understand here is, the image is in the demo list
and I can view it ok prior to seeding but how do I know after
seeding that its returning the seeded cached layer not the
source layer it was displaying in the first place?
Thanks for bearing with me.
Chris

  1. GeoWebCache acts like a proxy, so anything that comes out of
    /gwc/services is cached by default. If you get a tile, and if it
    wasn’t cached before, it is now.

This way you don’t have to preseed the entire map beforehand,
clients will populate the cache as they go.

-Arne

– Arne Kepp

OpenGeo - http://opengeo.org <http://opengeo.org/>

Expert service straight from the developers


Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

On Mon, Apr 6, 2009 at 5:59 PM, chris Wild <chrismwild@anonymised.com> wrote:

I copied the Map and Layer definitions from the automatically generated demo
and I get a screen divided into tiles but no image. The error message when
view image in Firefox is
'The file /C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/geoserver/openlayers/service/wms?LAYERS=topp:RectifyTRC_App_wgs&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=174.41113471984863,-39.44991946220398,174.4111454486847,-39.44990873336792&WIDTH=256&HEIGHT=256
cannot be found. Please check the location and try again.'
So the gwc demo can find the image but not the html?

Looks to me like you are running the file directly instead of going
through the server. Try going to http:localhost:8080/geoserver/wms -
rather than double clicking the html file in explorer.

Ian

Hi Ian,
Thanks for the suggestion but same thing happens with error

type Status report

message /geoserver/openlayers/service/wms

description The requested resource (/geoserver/openlayers/service/wms) is not available

Regards
Chris

On Tue, Apr 7, 2009 at 11:45 AM, Ian Turton <ijturton@anonymised.com> wrote:

On Mon, Apr 6, 2009 at 5:59 PM, chris Wild <chrismwild@anonymised.com> wrote:

I copied the Map and Layer definitions from the automatically generated demo
and I get a screen divided into tiles but no image. The error message when
view image in Firefox is
‘The file /C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/geoserver/openlayers/service/wms?LAYERS=topp:RectifyTRC_App_wgs&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=174.41113471984863,-39.44991946220398,174.4111454486847,-39.44990873336792&WIDTH=256&HEIGHT=256
cannot be found. Please check the location and try again.’
So the gwc demo can find the image but not the html?

Looks to me like you are running the file directly instead of going
through the server. Try going to http:localhost:8080/geoserver/wms -
rather than double clicking the html file in explorer.

Ian

Hi,

like Ian said, /geoserver/openlayers/service/wms is wrong.

It could be

/geoserver/wms

but probably you are trying to get to

/geoserver/gwc/service/wms

So you need to check your layer definition in the OpenLayers client. GWC demos use relative paths, but those will obviously not work when you move the code to a different path, so you need to fix them.

Sorry, but I really cannot spend more time on this thread, I hope you get there.

-Arne

chris Wild wrote:

Hi Ian,
Thanks for the suggestion but same thing happens with error

*type* Status report

*message* _/geoserver/openlayers/service/wms_

*description* _The requested resource (/geoserver/openlayers/service/wms) is not available_

Regards
Chris

On Tue, Apr 7, 2009 at 11:45 AM, Ian Turton <ijturton@anonymised.com <mailto:ijturton@anonymised.com>> wrote:

    On Mon, Apr 6, 2009 at 5:59 PM, chris Wild <chrismwild@anonymised.com
    <mailto:chrismwild@anonymised.com>> wrote:
    > I copied the Map and Layer definitions from the automatically
    generated demo
    > and I get a screen divided into tiles but no image. The error
    message when
    > view image in Firefox is
    > 'The file /C:/Program Files/Apache Software Foundation/Tomcat
    >
    6.0/webapps/geoserver/openlayers/service/wms?LAYERS=topp:RectifyTRC_App_wgs&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=174.41113471984863,-39.44991946220398,174.4111454486847,-39.44990873336792&WIDTH=256&HEIGHT=256
    > cannot be found. Please check the location and try again.'
    > So the gwc demo can find the image but not the html?
    >

    Looks to me like you are running the file directly instead of going
    through the server. Try going to http:localhost:8080/geoserver/wms -
    rather than double clicking the html file in explorer.

    Ian

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers