I am having trouble getting any geowebcache.xml to function. I am running geoserver 2.1.2 on Ubuntu 11.04 any help would be appreciated.
when I use this 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.6/geowebcache.xsd" xmlns="http://geowebcache.org/schema/1.2.6"> <version>1.2.6</version> <backendTimeout>120</backendTimeout> <gridSets> <gridSet> <name>e2249</name> <srs><number>2249</number></srs> <extent> <coords> <double>104294.9553</double> <double>2592496.1873</double> <double>1106463.9850</double> <double>3155719.1933</double> </coords> </extent> <levels>8</levels> <tileHeight>256</tileHeight> <tileWidth>256</tileWidth> </gridSet> </gridSets> <layers> <wmsLayer> <name>streetsgwc</name> <mimeFormats> <string>image/png</string> </mimeFormats> <gridSubsets> <gridSubset> <gridSetName>e2249</gridSetName> <extent> <coords> <double>858000.0</double> <double>2739000.0</double> <double>924000.0</double> <double>2833000.0</double> </coords> </extent> <zoomStart>0</zoomStart> <zoomStop>8</zoomStop> </gridSubset> </gridSubsets> <wmsUrl> <string>http://localhost:8080/geoserver/wms</string> </wmsUrl> <wmsLayers>topp:states</wmsLayers> </wmsLayer> </layers> </gwcConfiguration> I get this in my geoserver.log 2011-10-26 12:49:25,612 INFO [gwc.config] - Initializing GeoServer specific GWC configuration from gwc-gs.xml 2011-10-26 12:49:28,361 INFO [storage.DefaultStorageFinder] - ******************************************************************************************************************************** 2011-10-26 12:49:28,361 INFO [storage.DefaultStorageFinder] - *** Found Java environment variable GEOSERVER_DATA_DIR set to /opt/geoserver-2.1.2/data_dir, using it as the default prefix. *** 2011-10-26 12:49:28,361 INFO [storage.DefaultStorageFinder] - ******************************************************************************************************************************** 2011-10-26 12:49:29,167 INFO [jdbc.JDBCMBWrapper] - MetaStore database is version 120 2011-10-26 12:49:29,263 INFO [config.XMLConfiguration] - Found configuration file in /opt/geoserver-2.1.2/data_dir/gwc 2011-10-26 12:49:29,713 INFO [config.XMLConfiguration] - Configuration file validated fine. 2011-10-26 12:49:29,771 INFO [storage.StorageBroker] - Destroying StorageBroker 2011-10-26 12:49:31,048 INFO [geoserver.catalog] - Disposing datastore 'DataStoreInfoImpl--570ae188:124761b8d78:-7fd9' 2011-10-26 12:49:31,049 INFO [geoserver.catalog] - Disposing datastore 'DataStoreInfoImpl--570ae188:124761b8d78:-7fdc' 2011-10-26 12:49:31,052 ERROR [context.ContextLoader] - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'GWCCapabilitiesHomePageProvider' defined in URL [jar:file:/opt/geoserver-2.1.2/webapps/geoserver/WEB-INF/lib/web-gwc-2.1.2.jar!/applicationContext.xml]: Cannot resolve reference to bean 'gwcFacade' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gwcFacade' defined in URL [jar:file:/opt/geoserver-2.1.2/webapps/geoserver/WEB-INF/lib/gwc-2.1.2.jar!/geowebcache-geoserver-context.xml]: Cannot resolve reference to bean 'gwcTLDispatcher' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gwcTLDispatcher' defined in URL [jar:file:/opt/geoserver-2.1.2/webapps/geoserver/WEB-INF/lib/gwc-2.1.2.jar!/geowebcache-core-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gwcXmlConfig' defined in URL [jar:file:/opt/geoserver-2.1.2/webapps/geoserver/WEB-INF/lib/gwc-2.1.2.jar!/geowebcache-core-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.geowebcache.config.XMLConfiguration]: Constructor threw exception; nested exception is com.thoughtworks.xstream.converters.ConversionException: Cannot construct org.geowebcache.grid.SRS as it does not have a no-args constructor : Cannot construct org.geowebcache.grid.SRS as it does not have a no-args constructor ---- Debugging information ---- message : Cannot construct org.geowebcache.grid.SRS as it does not have a no-args constructor cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Cannot construct org.geowebcache.grid.SRS as it does not have a no-args constructor class : org.geowebcache.config.GeoWebCacheConfiguration required-type : org.geowebcache.grid.SRS -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geowebcache-xml-problems-tp6933380p6933380.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
