Hello Ryan, thank for your comment.

As I wrote, I'm using Geoserver 2.0 and trying GWC with one of the
sample raster layers bundled with it, nurc:Arc_Sample. Accessing this
layer by directly query the wms with the openlayers demo preview I get
a map of world precipitation. Accessing it through GWC (where all the
demo layers are listed) two tiles are rendered without any content;
the requests to the GWC server return a "400 Bad Request" error.

So I changed the xml file you sent so that it configures the
nurc:Arc_Sample layer and moved it to data_dir/gwc. I went to the GWC
demo page and hit the "Reload Configuration" button, but no new layers
were added to list. Checking the geoserver.log file I found this:

2010-11-23 10:04:31,033 ERROR [layer.TileLayerDispatcher] - Error
parsing file 
/usr/lib/jvm/Geoserver/geoserver/webapps/geoserver/../resources/geowebcache.xml
2010-11-23 10:04:31,033 ERROR [layer.TileLayerDispatcher] - Failed to
add layers from
/usr/lib/jvm/Geoserver/geoserver/webapps/geoserver/../resources
2010-11-23 10:04:31,033 INFO [layer.TileLayerDispatcher] - Adding
layers from /usr/lib/jvm/Geoserver/geoserver/webapps/geoserver/../resources
2010-11-23 10:04:31,033 ERROR [layer.TileLayerDispatcher] -
Configuration /usr/lib/jvm/Geoserver/geoserver/webapps/geoserver/../resources
contained no layers.
2010-11-23 10:04:31,033 INFO [reload.ReloadRestlet] - Configuration
reloaded. Read 32 layers from configuration resources.
2010-11-23 10:04:56,148 ERROR [wms.WMSHttpHelper] - Error forwarding
request 
http://localhost:8080/geoserver/wms?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=nurc:Arc_Sample&EXCEPTIONS=application/vnd.ogc.se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:4326&WIDTH=512&HEIGHT=256&BBOX=-180.0,-90.0,180.0,90.0
Connection refused
2010-11-23 10:04:56,148 ERROR [geowebcache.GeoWebCacheDispatcher] -
All backends (1) failed, last one:
http://localhost:8080/geoserver/wms?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=nurc:Arc_Sample&EXCEPTIONS=application/vnd.ogc.se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:4326&WIDTH=512&HEIGHT=256&BBOX=-180.0,-90.0,180.0,90.0

null http://localhost:8090/geoserver/gwc/service/wms
2010-11-23 10:04:56,152 ERROR [wms.WMSHttpHelper] - Error forwarding
request 
http://localhost:8080/geoserver/wms?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=nurc:Arc_Sample&EXCEPTIONS=application/vnd.ogc.se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:4326&WIDTH=512&HEIGHT=256&BBOX=-180.0,-90.0,180.0,90.0
Connection refused
2010-11-23 10:04:56,152 ERROR [geowebcache.GeoWebCacheDispatcher] -
All backends (1) failed, last one:
http://localhost:8080/geoserver/wms?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=nurc:Arc_Sample&EXCEPTIONS=application/vnd.ogc.se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:4326&WIDTH=512&HEIGHT=256&BBOX=-180.0,-90.0,180.0,90.0

null http://localhost:8090/geoserver/gwc/service/wms

It seems that GWC is looking for the geowebcache.xml file in some
other place. I also note that in the "Error forwarding request" line
the address is wrong, pointing to localhost:8080 instead of
localhost:8090. I have all configurations pointing to the 8090 port,
including in the geowebcache.xml file, that I'm attaching.

Could the fact that I'm running Geoserver on port 8090 by upsetting GWC somehow?

Thank you,

Luís

2010/11/22 Ryan Williams <rwilli...@paqinteractive.com>:
> Luis,
> Back to your original question, where one layer didn't run properly in the
> GWC demos; Does that layer load correctly in the geoserver Layer Preview?
> The GWC demos that you see when you aren't using a customized
> Geowebcache.xml file in the GWC folder are generated based on the WMS layers
> you are serving out of Geoserver. From my experience the demos of those tend
> to work well unless something is wrong with the WMS layer or it's data
> source. You shouldn't need a customized geowebcache.xml file for the demos
> to work.
> That said, there's good documentation on the geowebcache.xml file at
> http://geowebcache.sourceforge.net/docs/current/configuration/xml/index.html
>
> If you're using Geoserver, the config file goes in your data directory.
> There will be a folder in your geoserver data directory called "GWC"; the
> geowebcache.xml file goes in there. By default, there isn't one there - but
> you can create one. With the default Geowebcache setup, Geowebcache will
> create demos for all they layers you have in Geoserver as well as anything
> you specify in the geowebcache.xml file. I also attached a sample of a
> config file I use. i created it because I needed to make a grid subset of a
> layer so I could use it with other layers and have them line up nicely.
>
> Ryan
>
>
> --
> Ryan Williams, GISP
> GIS Analyst / Programmer
> PAQ Interactive Inc.
> Monticello, IL
> www.paqinteractive.com
>
<?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.2/geowebcache.xsd"; 
                  xmlns="http://geowebcache.org/schema/1.2.2";>
<version>1.2.2</version>
<backendTimeout>120</backendTimeout>
<gridSets>
  <gridSet>
    <name>Grid Test</name>
    <srs><number>102009</number></srs>
   <extent>
      <coords>
      	<double>-180</double>
		<double>-90 </double>
		<double>180</double>
		<double>90</double>
      </coords>
    </extent>
	<alignTopLeft>false</alignTopLeft>

	<levels>10</levels>
	<metersPerUnit>1</metersPerUnit>
	<pixelSize>0.00028</pixelSize>
    <tileHeight>256</tileHeight>
    <tileWidth>256</tileWidth>
  </gridSet>
</gridSets>

<layers>

  <!-- Begin County caching -->
  <wmsLayer>
    <name>nurc:Arc_Sample_2</name>
    <gridSubsets>
      <gridSubset>
        <gridSetName>Grid Test</gridSetName>
        <extent>
          <coords>
            <double>-180</double>
            <double>-90</double>
            <double>180</double>
            <double>90</double>
          </coords>
        </extent>
      </gridSubset>
    </gridSubsets>
    <wmsUrl><string>http://localhost:8090/geoserver/wms</string></wmsUrl>
	<wmsLayers>nurc:Arc_Sample</wmsLayers>
  </wmsLayer>
  
</layers>
</gwcConfiguration>
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to