From: Arne K. <ak...@op...> - 2010-02-09 15:18:28
|
2010-02-08 10:59:32,375 INFO [config.XMLConfiguration] - cvc-complex-type.2.4.b: The content of element 'gwcConfiguration' is not complete. One of '{"http://geowebcache.org/schema/1.2.1":layers}' is expected. So the point of confusion is that the gridSet definitions do not automatically apply to all configured layers. Before </gwcConfiguration> you need something like <layers> <wmsLayer> <name>yourlayer</name> <gridSubsets> <gridSubset> <gridSetName>EPSG:31300 Grid Set</gridSetName> </gridSubset> </gridSubsets> </wmsLayer> </layers> Note I would just call it "EPSG:31300" instead of "EPSG:31300 Grid Set" , the example has it as a test to make sure spaces work. BUT, actually testing that out, I ran into some issues related to a switch we did in 2.0.1. Something definitely has to bed fixed, but I can't put aside time to debug it now. If these layers are natively, EPSG:31300, it may be easier to use the standalone version of GWC, as the getcapabilities configuration then should pick up EPSG:31300 automatically. -Arne Geert Vermeiren wrote: > Hi Arne, > > We're using GeoServer 2.0.1 > Here's some more verbose logging from geoserver.log. I tried filtering > on relevant logging only.. hope I didn't eliminate anything useful: > > 2010-02-08 10:59:32,326 DEBUG [config.XMLConfiguration] - > Configuration directory set to: /opt/JBoss/data/all/geoserver_data_dir/gwc > 2010-02-08 10:59:32,327 INFO [config.XMLConfiguration] - Found > configuration file in /opt/JBoss/data/all/geoserver_data_dir/gwc > 2010-02-08 10:59:32,375 INFO [config.XMLConfiguration] - > cvc-complex-type.2.4.b: The content of element 'gwcConfiguration' is > not complete. One of '{"http://geowebcache.org/schema/1.2.1":layers}' > is expected. > 2010-02-08 10:59:32,375 INFO [config.XMLConfiguration] - Will try to > use configuration anyway. > 2010-02-08 10:59:32,446 DEBUG [config.XMLConfiguration] - Reading > EPSG:31300 Grid Set > 2010-02-08 10:59:32,446 WARN [grid.GridSetFactory] - GridSet > EPSG:31300 Grid Set was defined without metersPerUnit, assuming > 1m/unit. All scales will be off if this is incorrect. > 2010-02-08 10:59:32,446 INFO [config.XMLConfiguration] - Read GridSet > EPSG:31300 Grid Set > 2010-02-08 10:59:32,446 DEBUG [grid.GridSetBroker] - Adding EPSG:31300 > Grid Set > 2010-02-08 10:59:32,446 DEBUG [config.XMLConfiguration] - Not using > global HTTP authentication. > 2010-02-08 10:59:33,811 INFO [jdbc.JDBCMBWrapper] - MetaStore database > is version 120 > 2010-02-08 10:59:33,829 DEBUG [gwc.GWCCatalogListener] - > GWCCatalogListener registered with catalog > 2010-02-08 10:59:33,834 INFO [layer.TileLayerDispatcher] - > ConfigurationLoader acquired lock, sleeping 5 seconds > 2010-02-08 10:59:33,863 DEBUG [gwc.GWCCatalogListener] - > TileLayerDispatcher was set > 2010-02-08 10:59:33,898 INFO [geowebcache.GeoWebCacheDispatcher] - > Invoked setServletPrefix(gwc) > > [...] > > 2010-02-08 10:59:35,858 INFO [layer.TileLayerDispatcher] - > ConfigurationLoader woke up, initializing > 2010-02-08 10:59:35,859 DEBUG [layer.TileLayerDispatcher] - Thread > initLayers(), initializing > 2010-02-08 10:59:35,883 DEBUG [wms.WMSLayer] - Setting sourceHelper on > MultiNetVector2004:weg_06_ant > 2010-02-08 10:59:35,893 DEBUG [wms.WMSLayer] - Setting sourceHelper on > MultiNetVector2004:weg_06_bru > > [...300 layers omitted...] > > 2010-02-08 10:59:36,285 DEBUG [gwc.GWCCatalogListener] - Responding > with 300 to getTileLayers() request from TileLayerDispatcher > 2010-02-08 10:59:36,286 INFO [layer.TileLayerDispatcher] - Adding > layers from GeoServer Catalog Listener > 2010-02-08 10:59:36,286 INFO [layer.TileLayerDispatcher] - Adding: > MultiNetVector2004:weg_06_ant > 2010-02-08 10:59:36,287 INFO [layer.TileLayerDispatcher] - Adding: > MultiNetVector2004:weg_06_bru > > [...300 layers omitted...] > > 2010-02-08 10:59:36,327 INFO [layer.TileLayerDispatcher] - Adding > layers from /opt/JBoss/data/all/geoserver_data_dir/gwc > 2010-02-08 10:59:36,328 ERROR [layer.TileLayerDispatcher] - > Configuration /opt/JBoss/data/all/geoserver_data_dir/gwc contained no > layers. > 2010-02-08 10:59:36,328 INFO [layer.TileLayerDispatcher] - > ConfigurationLoader completed > > > The thing that bothers me is (right at the top): > > 2010-02-08 10:59:32,375 INFO [config.XMLConfiguration] - > cvc-complex-type.2.4.b: The content of element 'gwcConfiguration' is > not complete. One of '{"http://geowebcache.org/schema/1.2.1":layers}' > is expected. > 2010-02-08 10:59:32,375 INFO [config.XMLConfiguration] - Will try to > use configuration anyway. > > Does this mean I will have configure all those layers manually in the > geowebcache.xml ? > Or is something else going wrong ? > > kind regards, > > Geert > > > On Mon, Feb 8, 2010 at 10:41 AM, Arne Kepp <ak...@op... > <mailto:ak...@op...>> wrote: > > Which version of GeoServer ? > > And please include more of the logs, there should be more > references to geowebcache.xml. > > -Arne > > > Geert Vermeiren wrote: > > Hi all, > > We are currently trying to setup GeoServer and are running > into some problems with GeoWebCache. > > When visiting the GWC page, we see all our layers, but only > the gridsets EPSG:900913 & EPSG:4326 are available from the > demo-page. > In the GeoServer manual I read that for other grid-sets, we > have to add a geowebcache.xml to <GSDATA>/gwc, containing the > gridset of our choice (which would be EPSG:31300). So I added > a geowebcache.xml containing EPSG:31300, configuring the > correct bounds. Here's our geowebcache.xml: > > <?xml version="1.0" encoding="utf-8"?> > <gwcConfiguration ...> > <version>1.2.1</version> > <backendTimeout>120</backendTimeout> > <gridSets> > <gridSet> > <name>EPSG:31300 Grid Set</name> > <srs><number>31300</number></srs> > <extent> > <coords> > <double>25976.93</double> > <double>155357.453</double> > <double>243741.234</double> > <double>240868.828</double> > </coords> > </extent> > <scaleDenominators> > <double>500000</double> > <double>250000</double> > <double>100000</double> > <double>50000</double> > </scaleDenominators> > <tileHeight>200</tileHeight> > <tileWidth>200</tileWidth> > </gridSet> > </gridSets> > </gwcConfiguration> > > After restarting GeoServer, on the gwc demo page I can see all > the defined layers, however only the default gridsets are shown. > The new gridset is not available from the GWC demo page, not > even after a click on the 'reload config' button. > > In the geoserver.log file, I found this message: > > ERROR [layer.TileLayerDispatcher] - Configuration > /opt/JBoss/data/all/geoserver_data_dir/gwc contained no layers. > > Am I missing something here ? > > Kind regards, > > Geert Vermeiren > > -- > From the shade of the ancient birches on the hilltop, Woozong > the ExtraOrdinator gazed through his televiewer into the > valley to observe the dwarves... > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, > colocation > Stay online with enterprise data centers and the best network > in the business > Choose flexible plans and management services without > long-term contracts > Personal 24x7 support from experience hosting pros just a > phone call away. > http://p.sf.net/sfu/theplanet-com > ------------------------------------------------------------------------ > > _______________________________________________ > Geoserver-users mailing list > Geo...@li... > <mailto:Geo...@li...> > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > > > > -- > Arne Kepp > OpenGeo - http://opengeo.org > Expert service straight from the developers > > > > > -- > From the shade of the ancient birches on the hilltop, Woozong the > ExtraOrdinator gazed through his televiewer into the valley to observe > the dwarves... -- Arne Kepp OpenGeo - http://opengeo.org Expert service straight from the developers |