Here's the original 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.1.5/geowebcache.xsd";
                   xmlns="http://geowebcache.org/schema/1.1.5";>
<version>1.1.5</version>
<backendTimeout>120</backendTimeout>
<cacheBypassAllowed>true</cacheBypassAllowed>
<layers>
<!-- HABITATS_GEOMETRIA -->
<wmsLayer>
<name>XXXXX:HABITATS_GEOMETRIA</name>
<mimeFormats>
<string>image/png</string>
</mimeFormats>
<grids>
<entry>
<srs>
<number>23031</number>
</srs>
<grid>
<srs>
<number>23031</number>
</srs>
<dataBounds>
<coords>
<double>258000</double>
<double>4485000</double>
<double>536000</double>
<double>4752000</double>
</coords>
</dataBounds>
<gridBounds>
<coords>
<double>258000</double>
<double>4485000</double>
<double>536000</double>
<double>4752000</double>
</coords>
</gridBounds>
<resolutions>
<double>550.0</double>
<double>275.0</double>
<double>100.0</double>
<double>50.0</double>
<double>25.0</double>
<double>10.0</double>
<double>5.0</double>
<double>2.0</double>
<double>1.0</double>
<double>0.5</double>
</resolutions>
</grid>
</entry>
</grids>
<wmsUrl>
<string>http://XXXXXXXXXX/geoserver/wms</string>
</wmsUrl>
<wmsLayers>SIPAN:HABITATS_GEOMETRIA</wmsLayers>
<wmsStyles>HABITATS_GEOMETRIA</wmsStyles>
<tiled>false</tiled>
<transparent>false</transparent>
<bgColor></bgColor>
<palette></palette>
<expireCache>7200</expireCache>
<expireClients>240</expireClients>
</wmsLayer>
</layers>
</gwcConfiguration>




El 01/02/2012 16:08, Gabriel Roldan escribió:
> Would you send the original geowebcache.xml?
> The layers in there were configured to serve geoserver layers or wms layers?
>
> The're was a re-estructuring of the geowebcache.xsd schema so that the
> validation phase at load time can be done better, but none of them
> should actually affect the runtime behaivor because the xstream
> library, used to load the config, doesn't care about the schema.
>
> It'd be good if you send your geoserver 2.0.0 geowebcache.xml file to
> take a look at it.
>
> Cheers,
> Gabriel
>
> On Tue, Jan 31, 2012 at 12:21 PM, Agustí Escobar Rúbies
> <a.esco...@creaf.uab.es>  wrote:
>> Hello everyone:
>>
>>
>> I recently upgraded GeoServer to version 2.1.3 revision 16668. Apparently 
>> this upgraded also the bundled Geowebcache, which is now 1.3-RC2, built 
>> 2011-12-21 11:31:51.
>>
>> Before the upgrade I was serving a set of layers through gwc, using a 
>> customized geowebcache.xml which allowed me to serve these layers using 
>> 23031:EPSG projection.
>>
>> After the upgrade, these layers ceased to work. It seems that the structure 
>> of geowebcache.xml has changed, and my customized file no longer works.
>>
>> I tried to update it to a version which is compatible with 1.3.0, and 
>> finally I have produced a file that GeoWebCache seems to like; however, i 
>> can't serve my layer using my custom 23031 projection.
>>
>> This is my geowebcache configuration file:
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <gwcConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>> xsi:noNamespaceSchemaLocation="http://geowebcache.org/schema/1.3.0/geowebcache.xsd";
>>  xmlns="http://geowebcache.org/schema/1.3.0";>
>>         <version>1.3.0</version>
>>         <backendTimeout>120</backendTimeout>
>>         <cacheBypassAllowed>true</cacheBypassAllowed>
>>         <gridSets>
>>                 <gridSet>
>>                         <name>EPSG:23031</name>
>>                         <srs><number>23031</number></srs>
>>                         <extent>
>>                                 <coords>
>>                                         <double>238730.0252</double>
>>                                         <double>4276730.7754</double>
>>                                         <double>761269.9748</double>
>>                                         <double>7434723.1222</double>
>>                                 </coords>
>>                         </extent>
>>                         <resolutions>
>>                                 <double>550.0</double>
>>                                 <double>275.0</double>
>>                                 <double>100.0</double>
>>                                 <double>50.0</double>
>>                                 <double>25.0</double>
>>                                 <double>10.0</double>
>>                                 <double>5.0</double>
>>                                 <double>2.0</double>
>>                                 <double>1.0</double>
>>                                 <double>0.5</double>
>>                         </resolutions>
>>                         <metersPerUnit>1</metersPerUnit>
>>                         <tileHeight>256</tileHeight>
>>                         <tileWidth>256</tileWidth>
>>                 </gridSet>
>>         </gridSets>
>>         <layers>
>>                 <wmsLayer>
>>                         <name>XXXXXXXXXXXXXXXXX</name>
>>                         <mimeFormats>
>>                                 <string>image/png</string>
>>                         </mimeFormats>
>>                         <gridSubsets>
>>                                 <gridSubset>
>>                                         <gridSetName>EPSG:23031</gridSetName>
>>                                         <extent>
>>                                                 <coords>
>>                                                         
>> <double>258000</double>
>>                                                         
>> <double>4485000</double>
>>                                                         
>> <double>536000</double>
>>                                                         
>> <double>4752000</double>
>>                                                 </coords>
>>                                         </extent>
>>                                 </gridSubset>
>>                         </gridSubsets>
>>                         <wmsUrl>
>>                                 
>> <string>http://XXXXXXXXXXXXX/geoserver/wms</string>
>>                         </wmsUrl>
>>                 </wmsLayer>
>>         </layers>
>> </gwcConfiguration>
>>
>>
>> And this is an excerpt from the geoserver logs, in which geoserver/gwc seem 
>> to like the config file:
>>
>> ....
>> 2012-01-31 15:47:14,494 INFO [config.XMLConfiguration] - Will look for 
>> geowebcache.xml in 'C:\DataDir_GeoServer\gwc'
>> 2012-01-31 15:47:14,510 DEBUG [layer.TileLayerDispatcher] - Thread 
>> initLayers(), initializing
>> 2012-01-31 15:47:14,510 DEBUG [layer.TileLayerDispatcher] - Reading service 
>> information.
>> 2012-01-31 15:47:14,510 INFO [config.XMLConfiguration] - Found configuration 
>> file in C:\DataDir_GeoServer\gwc
>> 2012-01-31 15:47:14,541 INFO [config.XMLConfiguration] - Configuration file 
>> validated fine.
>> 2012-01-31 15:47:14,572 INFO [config.XMLConfiguration] - Initializing 
>> GridSets from C:\DataDir_GeoServer\gwc
>> 2012-01-31 15:47:14,572 DEBUG [config.XMLConfiguration] - Reading EPSG:23031
>> 2012-01-31 15:47:14,572 INFO [config.XMLConfiguration] - Read GridSet 
>> EPSG:23031
>> 2012-01-31 15:47:14,572 DEBUG [grid.GridSetBroker] - Adding EPSG:23031
>> 2012-01-31 15:47:14,572 INFO [config.XMLConfiguration] - Initializing layers 
>> from C:\DataDir_GeoServer\gwc
>> ....
>>
>>
>> I'm out of ideas. What am I doing wrong?
>>
>> Thanks in advance,
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Keep Your Developer Skills Current with LearnDevNow!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-d2d
>> _______________________________________________
>> Geoserver-users mailing list
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to