Hi,
I am using a layer from SQL view and took parameters dynamically. I tried to
use GeoWebCache (gwc) to speed up the process of WMS requests. I tried to
configure GeoWebCache with viewparams.
I added a new <wmsLayer> in $GEOSERVER/data_dir/gwc/geowebcache.xml.
<wmsLayer>
<name>NC_County_viewparams</name>
<mimeFormats>
<string>image/jpeg</string>
<string>image/png</string>
</mimeFormats>
<parameterFilters>
<regexParameterFilter>
<key>VIEWPARAMS</key>
<defaultValue></defaultValue>
<regex>.*</regex>
</regexParameterFilter>
</parameterFilters>
<wmsUrl>
<string>http://localhost:8080/geoserver/wms</string>
</wmsUrl>
<wmsLayers>nc:co37_d00</wmsLayers>
</wmsLayer>
Then I tried
http://localhost:8080/geoserver/gwc/demo/NC_County_viewparams?gridSet=EPSG:4326&format=image/jpeg
It didn't work. I got this error in the log:
ERROR [geowebcache.GeoWebCacheDispatcher] - All backends (1) failed. Reason:
Unexpected response code from backend: 401 for
http://localhost:8080/geoserver/wms?. Last request:
'http://localhost:8080/geoserver/wms?'.
http://localhost:8080/geoserver/gwc/service/wms
I don't know why there is such error. I've tested the layer in the openlayer
view and http://localhost:8080/geoserver/wms works.
Are there anything wrong in gwc wmslayer configuration? or are there any other
problems?
Thanks,
Meichun
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users