Hi,
What I wrote a few days ago works for us and is in production. Geoserver version is 2.3.2 and integrated GWC is v. 1.4.
- Add <param-name>GEOWEBCACHE_CACHE_DIR</param-name> into Geoserver config in /webapps/geoserver/WEB-INF/web.xml
- Write geowebcache.xml
Now all the layers from Geoserver comes automatically into GWC. In addition, all the layers defined in geowebcache.xml come also available through GWC. Add the cascaded WMS layers that you want to serve through GWC into geowebcache.xml. I have not tried how it works with the WMS that comes from the local Geoserver but I do believe that it will be OK.
Perhaps this is not the recommended way to make the configuration for current Geoserver versions but I guarantee that is works with GS 2.3.2.
-Jukka Rahkonen-
cmaul
Well Stefan, it doesn't seem so basic. I think I know what you are after.
It seems you want to have both in your geowebcache config. Layers of the
geoserver instance and layers defined in the geowebcache.xml.I think you can have that, the key is the geowebcache-core-context.xml
The important bit is at the bottom. Call the gwc with both a gwcXmlConfig and
gwcWMSConfig<bean id="geowebcacheDispatcher"
class="org.geowebcache.GeoWebCacheDispatcher" destroy-
method="destroy">
<constructor-arg ref="gwcTLDispatcher"/>
<constructor-arg ref="gwcGridSetBroker"/>
<constructor-arg ref="gwcStorageBroker"/>
<constructor-arg ref="gwcXmlConfig"/>
<constructor-arg ref="gwcWMSConfig"/>
<constructor-arg ref="gwcRuntimeStats"/>
<property name="defaultStorageFinder" ref="gwcDefaultStorageFinder"/>
</bean>On top you need to define the xml config ()
<bean id="gwcXmlConfig" class="org.geowebcache.config.XMLConfiguration">
<constructor-arg ref="gwcAppCtx" />
<constructor-arg value="/Tomcat
7_NON_spatial/webapps/geowebcache##1.5/WEB-INF" />
<property name="template" value="/geowebcache.xml">
<description>Set the location of the template configuration file to copy over
to the
cache directory if one doesn't already exist.
</description>
</property>
</bean>and a WMS config (which would be your geoserver)
<!-- <bean id="gwcWMSConfig"
class="org.geowebcache.config.GetCapabilitiesConfiguration">
<constructor-arg ref="gwcGridSetBroker">
</constructor-arg>
<constructor-arg
value="http://services.land.vic.gov.au/geoserver_pWMS/ows?SERVICE=WMS&
amp;VERSION=1.1.1&REQUEST=GetCapabilities">
<description>The URL to the WMS GetCapabilities document, notice & ,
port is normally 8080</description>
</constructor-arg>.............................and you get both. I think this would be how should work (Sorry cannot try it
before the weekend, but I will and tell you the result)Cheers
Christian
-----
____________________________Dr Christian Maul
Project ManagerInformation Services Branch
Department Environment and Primary Industries Level13, Marland House, 570
Bourke Street Melbourne 3000PO Box 500, East Melbourne Vic 3002
Telephone: +61-3-8636 2325
Telefax: +61-3-8636 2813
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Very-basic-
question-Geowebcache-Geoserver-tp5133923p5134492.html
Sent from the GeoServer - User mailing list archive at Nabble.com.------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration Continuously
Automate Build, Test & Deployment Start a new project now. Try Jenkins in the
cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users