[Geoserver-users] Prevent GeoWebCache plugin from loading GeoServer WMS layers

Hello list,

I'm using the GeoWebCache plugin in GeoServer 1.7.3. I have defined some
layers with custom SRS in
GEOSERVER_DATA_DIR/WEB-INF/classes/geowebcache.xml. I would like only these
layers to be loaded by the GWC plugin. How can I do that ?

In the standalone version of GWC, I guess I could do this in the
http://geowebcache.org/trac/browser/trunk/geowebcache/src/main/webapp/WEB-INF/geowebcache-servlet.xml?rev=612
geowebcache-servlet.xml file, by removing gwcWMSConfig from the
gwcTLDispatcher bean. Is this also possible in the GWC plugin ?

Otherwise, I could change the GEOSERVER_WMS_URL to a wrong address, but is
there a better solution ?

Alain
--
View this message in context: http://www.nabble.com/Prevent-GeoWebCache-plugin-from-loading-GeoServer-WMS-layers-tp23885514p23885514.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Quoting acangi <aca@anonymised.com>:

Hello list,

I'm using the GeoWebCache plugin in GeoServer 1.7.3. I have defined some
layers with custom SRS in
GEOSERVER_DATA_DIR/WEB-INF/classes/geowebcache.xml. I would like only these
layers to be loaded by the GWC plugin. How can I do that ?

In the standalone version of GWC, I guess I could do this in the
http://geowebcache.org/trac/browser/trunk/geowebcache/src/main/webapp/WEB-INF/geowebcache-servlet.xml?rev=612
geowebcache-servlet.xml file, by removing gwcWMSConfig from the
gwcTLDispatcher bean. Is this also possible in the GWC plugin ?

Otherwise, I could change the GEOSERVER_WMS_URL to a wrong address, but is
there a better solution ?

Alain

See http://geoserver.org/display/GEOSDOC/5.+GWC+-+GeoWebCache

Setting the WMS URL to something invalid should do it, I suggest localhost on a port that is not in use.

-Arne

OpenGeo - http://opengeo.org
<This is the space where I get to be creative>