|
From: Arne K. <ak...@op...> - 2010-02-23 21:24:12
|
Correct, you have to either reload the servlet (the heavy handed way is to restart Tomcat) OR hit the reload button at the bottom of GWC's demo page. You'll see it in the logfile when the configuration sources are read, every layer is listed as it is loaded. -Arne Surendran K.N wrote: > Hi Arne > > Thanks for the guidelines. As i told , I was not sure about that. > Today I have repeated the process. > > I got the same error, but this time after i restart Tomcat, The layer > Displayed in Gmaps. Again may question is do we need to restart each > time after we add a store /layer ?. > > Message says Check the log file. But I didn't see anything related > with this error in the log file . > > After I Install Geoserver for the first time, I installed Geowebcach > again ( actually It was integrated with Geoserver). Now I think have > two GeoWebcache installations, > 1)http://localhost:8080/geowebcache/demo > 2)http://localhost:8080/geoserver/gwc/demo. But I dont see a gwc > folder under geoserver folder, I am not sure how it is configured. > I have added two entries in webapps\geowebcach\WEB-INF\web.xml. to > solve the problem, but it didn't help > > <context-param> > <param-name>GEOSERVER_DATA_DIR</param-name> > <param-value>C:\Program Files\Apache > Group\apache-tomcat-5.5.28\webapps\geoserver\data</param-value> > </context-param> > > <context-param> > <param-name>GEOWEBCACHE_CACHE_DIR</param-name> > <param-value>C:\Program Files\Apache > Group\apache-tomcat-5.5.28\webapps\geoserver\data\geowebcache</param-value> > </context-param> > > and I have set GEOSERVER_DATA_DIR environment variable. > > I have seen some discussion regarding similar type of issue here > :http://old.nabble.com/FW:--geowebcache-1.2-configuration-td25882960.html > > Finally, I am attaching related files,( logs,screenshots etc) which > may help to identify the problem. > > > Thank you > Suerndran > > > > > > On Mon, Feb 22, 2010 at 8:04 PM, Arne Kepp <ak...@op... > <mailto:ak...@op...>> wrote: > > (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...> <mailto: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>> > > <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 > <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 > > -- Arne Kepp OpenGeo - http://opengeo.org Expert service straight from the developers |