|
From: Arne K. <ak...@op...> - 2010-02-23 01:04:59
|
(Please keep replies on the list)
I don't know the answer, but if clearing the cache on the browser helps,
then it seems highly unlikely that this is a GWC problem. The only
explanation I can think of is if you configured the client before you
configured GWC, and then the client cached the "not found" response. But
GWC does not set headers that would encourage such caching anyway.
-Arne
Surendran K.N wrote:
> Hi Arne
>
> I spent several hours behind this issue. I am sure that it is not
> just "misspelling ", as I am copying these name from the address bar
> from the Geowebcahe Demo page.
>
> Once I have noticed that it is automatically fixed when I check next day.
>
> Again I have added one new layer, checked everything, it is perfect
> in Geowebcache demo page , But still not working in Gmaps. When I
> call the layer from google maps API, the "Unknown layer" error comes
> again in Tomcat window.
>
> I left it Friday evening. Today morning it is displaying in gmaps
> without any problem !!!
>
> I have added one more layer today., Again the same "unknown layer"
> error from gmaps.
>
> I try log out Geoserver, Shutdown Tomcat , Restart Appache server,
> Restart the computer. But the problem still remains.
>
> Finally I think I figured it out as it needs "*Clear Browsing data*"
> to display the layer it in gmaps.
>
> I am still not sure if it is the exact problem.
>
>
> Please let me now What you think.
>
> Regards
> Surendran
>
>
>
>
>
>
>
> On Sat, Feb 20, 2010 at 4:33 PM, Arne Kepp <ak...@op...
> <mailto:ak...@op...>> wrote:
>
> Hi Surendran,
>
> the most likely cause is a minor misspelling of the "layer-name"
> you use in the GTileLayer constructor
> (landuse:DwellingsWithBasements) and what the actual name of the
> layer is according to GeoWebCache.
>
> In the same window, when GWC is starting, it should list all the
> layers it is loading. Compare with the names there?
>
> -Arne
>
> Surendran K.N wrote:
>
> Hi
>
> My Environment is :
>
> Windows XP ,Google Chrome,
> WCS :1.0.0 ,1.1.1 ; WFS:1.0.0,1.1.0; WMS:1.1.1 ; GeoServer:
> 2.0.1; GeoWebCache version NIGHTLY, built 2009-12-04
>
>
> I have two layer of same kind. Both layer listing in the
> Geowebcahe Demo page. I will be able to view /zoom without
> any issue.
>
> One of this layer is displying in Google maps.
> When I try to access the other layer I am getting following
> error from tomcat window.
>
> Iam using following method to call layer
> var tilelayer = new GTileLayer(null, null, null, {
> tileUrlTemplate:
> 'http://localhost:8080/geowebcache/service/gmaps?layers=layer-name&zoom={Z}&x={X}&y={Y}&format=image/png
> <http://localhost:8080/geowebcache/service/gmaps?layers=layer-name&zoom=%7BZ%7D&x=%7BX%7D&y=%7BY%7D&format=image/png>
> <http://localhost:8080/geowebcache/service/gmaps?layers=layer-name&zoom=%7BZ%7D&x=%7BX%7D&y=%7BY%7D&format=image/png
> <http://localhost:8080/geowebcache/service/gmaps?layers=layer-name&zoom=%7BZ%7D&x=%7BX%7D&y=%7BY%7D&format=image/png>>',
> isPng:true, opacity:0.5 } );
>
>
>
>
> INFO[geowebcache.GeowebCacheDispatcher] - read 425 from Blank
> PNG file (expected 425)
>
> ERROR [geowebcach.GeowebcacheDispatcher] Thread 58 unknown
> layer landuse:DwellingsWithBasements.
> Check the logfile it may not have loaded properly.
> http://localhost:8080/geowebcache/service/gmap
>
> same error is coming out with different Thread No.
>
>
> The last part of the logfile look like this:
>
> 2010-02-19 15:33:18,162 INFO [layer.TileLayerDispatcher] -
> ConfigurationLoader completed
> 2010-02-19 15:33:20,398 INFO [responses.helpers] - Supported
> JAIMapResponse's MIME Types: [image/jpeg]
> 2010-02-19 15:53:16,971 WARN [geoserver.we] - GWCAdminPage
> does not have a title set
>
>
> Please help me to resolve this.
>
>
>
> --
> Arne Kepp
> OpenGeo - http://opengeo.org
> Expert service straight from the developers
>
>
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers
|