hi Arne,
I didn't think the geoserver caching option should make a difference
but you never know, thanks.
When I use a layer group, geoserver can't answer or handle any more
wms requests, and essentially freezes (though I can still access the
geoserver interface), and 4 error and warning messages are returned
from the console; IE or Firefox both freeze, or are overloaded in some
way (not even pink tiles of death display). Is there some sort of
tile bounding option that should be set in openlayers? The request
string simply changes to: (only the layers parameter is different).
worldLayer = new OpenLayers.Layer.WMS("GWC Test",
"http://localhost:8082/geoserver/gwc/service/wms",
{
layers: 'WorldMap'
styles: '',
srs: 'EPSG:4326',
format: 'image/png'
});
1) One warning I thought might be relevant indicates "style 'WorldMap'
(also my group layer name) is not defined", so I created an sld which
styled the two layers I'm trying to view in the same layer group and
inserted that into the option in the config-->wms-->contents 'styles'
option. That got rid of the one error from the console, but others
remain.
2) WARN [wms.WMSLayer] - cachePrefix not defined for layer WorldMap,
using default prefifx and name instead: ...\data_dir\gwc\WorldMap
3) WARN [geoserver.ows] - IndexOutOfBoundsException: Index: 1, Size: 1
at <a whole bunch of lines>
4) finally, ERROR [wms.WMSLayerProfile] - Layer profile wants MaxAge
from backend, but backend does not provide this (of course, since the
layer group isn't defined with those options). Setting to 7200
seconds.
thanks for reading the novel, I'm not sure what else to do here.
-wd
2008/6/22 Arne Kepp <ak@anonymised.com>:
That's strange, I tested trunk just now and it works fine. I'm pretty
confident that code hasn't changed. If you use Firefox you can right click
on a pink tile and choose "view image" to see the error message. (It's
plain text, so the browser doesn't know how to render it).
Caching enabled only affects the HTTP headers output by GeoServer, GWC
stores the tiles forever and sets the HTTP headers to two hours if GeoServer
doesn't provide a different value.
-Arne
Wes Toews wrote:
hi Arne,
Thank you for the quick reply and the clarification; I've tried
the WMS layer group defined from Geoserver as well. Using both the
pre-packaged layer groups (such as 'tiger-ny') and my own layer groups
I get pink tiles returned. In the /data_dir/gwc directory, folders
for the layer group names are created but have no contents (of
course), so the layer group is being recognized by geowebcache as
existing but that's about it. I've also tried it with the 'caching
enabled' option under config --> featuretype editor turned on and off.
Any further suggestions?
thanks,
-wd
2008/6/22 Arne Kepp <ak@anonymised.com>:
GeoWebCache does not process the images (except slice up metatiles), so
it
cannot combine multiple layers at this point.
There are ways to request multiple layers from the backend, but I think
it
will be easier to define a layer group in GeoServer (Config -> WMS ->
Contents) and then restart GeoServer so that GWC learns about the new
"layer".
-Arne
Wes Toews wrote:
hi, I'm a bit of a noob at using the geowebcache plugin to geoserver
(running through openlayers) and I can get a standard wms call to work
for one layer, properly cached in the /data_dir/gwc/ directory, but
when I submit 2 or more layers to the 'layers' parameter as in the
following case:
worldLayer = new OpenLayers.Layer.WMS("GWC Test",
"http://localhost:8082/geoserver/gwc/service/wms",
{
layers: ['wts:country','wts:cities'],
styles: '',
srs: 'EPSG:4326',
format: 'image/png'
});
However this works if I revert to non-gwc usage of /geoserver/wms,
otherwise the pink tiles of death are returned. Are there any
idiosyncracies I may not be aware of? Thanks in advance, and I'd
appreciate not being pointed to another list if possible.
thanks,
-wd
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4038,485ea5c522527082231907!