Virtual Services support in GWC
-------------------------------
Key: GEOS-4155
URL: http://jira.codehaus.org/browse/GEOS-4155
Project: GeoServer
Issue Type: Improvement
Components: GWC
Affects Versions: 2.1-beta1
Environment: Tomcat, WAR, Debian Squeeze
Reporter: Fran Boon
Assignee: Andrea Aime
I am trying out the 2.1 beta's Virtual Services:
http://docs.geoserver.org/latest/en/user/services/virtual-services.html
All works well with WMS, but I can't get them working with GWC
I tried simply setting my workspace:
http://localhost:8000/geoserver-2.1-beta/gwc/service/atlantis/wms
However this gives HTTP "400 Bad Request"
GeoServer log showing:
'Unable to find handler for service "atlantis"'
I therefore used these docs:
http://docs.geoserver.org/stable/en/user/geowebcache/setup.html#pointing-geowebcache-to-geoserver-s-wms
http://geowebcache.org/docs/current/configuration/xml/simple.html#minimal
to create this file:
/var/lib/tomcat5.5/webapps/geoserver-2.1-beta/data/gwc/geowebcache.xml
<?xml version="1.0" encoding="utf-8"?>
<gwcConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://geowebcache.org/schema/1.2.2/geowebcache.xsd"
xmlns="http://geowebcache.org/schema/1.2.2">
<version>1.2.2</version>
<layers>
<!-- ... -->
<wmsLayer>
<name>atlantis:atlantis</name>
<wmsUrl><string>http://localhost:8000/geoserver/atlantis/wms</string></wmsUrl>
</wmsLayer>
<!-- ... -->
</layers>
</gwcConfiguration>
However it doesn't seem to be the correct location:
2010-10-04 11:23:11,709 ERROR [layer.TileLayerDispatcher] - Error reading service information from /var/lib/tomcat5.5/webapps/geoserver-2.1-beta/../resources: Error parsing file /var/lib/tomcat5.5/webapps/geoserver-2.1-beta/../resources/geowebcache.xml
Moving it to the correct location has the file parse, but there is still an issue:
HTTP "400 Bad Request"
GeoServer log showing:
2010-10-04 12:10:59,453 ERROR [geowebcache.GeoWebCacheDispatcher] - Unexpected response from GeoServer for request
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=atlantis%3Aatlantis&EXCEPTIONS=application/vnd.ogc.se_xml&STYLES=
&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:900913&WIDTH=1024&HEIGHT=1024&BBOX=8766409.89875,0.0,1.001875416999999
8E7,1252344.2712499984 http://localhost:8000/geoserver-2.1-beta/gwc/service/wms
2010-10-04 12:10:59,689 ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException: No workspace specified
I was advised on IRC to log a JIRA to add this support as the support simply isn't present yet...in which case this should be made clear in the docs.
Many thanks,
Fran.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira