I'm actually using OpenLayers and GeoServer to make a GIS application. For the moment, GeoWebCache is directly integrated into GeoServer, but for my future needs, I'll need to have it as a stand alone. I've dowloaded it and deployed it, but now I can't make it work.
But I basically want to do is, for the moment, use it as a "firewall". Typically, in OpenLayers I have such requests :
to retrieve WMS data.
What I want to do, is to change this URL to make it point to the GeoWebCache stand-alone, and then the GeoWebCache stand-alone will call the right layers into GeoServer.
I followed this documentation : http://geowebcache.org/docs/current/quickstart/index.html
But I can't make it work. I had no geowebcache.xml to test layer so I created one from github and put it into WEB-INF/classes, but it still does not work. Inside my geowebcache-core-context.xml I've added lines like this :
<bean id="gwcWMSConfig" class="org.geowebcache.config.GetCapabilitiesConfiguration"> ... <constructor-arg value="http://http://188.8.131.52:8080/geoserver/ows?service=WMS&request=GetCapabilities&version=1.1.0">
<bean id="gwcTLDispatcher" class="org.geowebcache.layer.TileLayerDispatcher"> .... <constructor-arg ref="gwcGridSetBroker"/> <constructor-arg ref="gwcWMSConfig"/> <constructor-arg ref="gwcXmlConfig"/> </bean>
But still nothing is working, and I'm quite lost :'( ! Any help would be gladly appreciated :-)!