Hello again, So I edited the web.xml file and added the GEOSERVER_WMS_URL parameter pointing to the correct port:
http://localhost:8090/geoserver/wms?request=GetCapabilities I then restarted Geoserver, everything came up fine and I accessed the GWC demo, where all the layers are still being listed. I tried again the nurc:Arc_Sample preview, now I don't get the "400 Bad Request" error, but I still can't see the map, instead there's the message error: code="OperationNotSupported" locator="GetCapabilities?SERVICE=WMS"No operation wms 1.1.0 GetCapabilities?SERVICE=WMS Any clues? Thank you, Luís 2010/11/23 Rahkonen Jukka <jukka.rahko...@mmmtike.fi>: > Hi, > > I made a new Windows default installation with Tomcat and Geoserver war file > and I managed to get similar errors than you have reported in some of your > old mails. I also managed to make GWC to work with my own layer and to use > another cache directory than the default one. > > What I did was > > - After installation I changed the default cache dir by editing the web.xml > file by adding > <context-param> > <param-name>GEOWEBCACHE_CACHE_DIR</param-name> > <param-name>d:\my_cache_dir</param-name> > </context-param> > > Restarting Tomcat at this phase was giving errors like this: > 2010-11-22 12:15:03,825 ERROR [layer.TileLayerDispatcher] - Configuration > /usr/lib/jvm/Geoserver/geoserver/webapps/geoserver/../resources contained no > layers. > > Adding a valid geowebcache.xml file into the root of d:\my_cache_dir and > restarting Tomcat wiped away those errors, my own layer appeared into the gwc > demo layer list, OpenLayers preview started to work and cache started to > collect tiles. Thus in my case two steps were enough: > 1) set the GEOWEBCACHE_CACHE_DIR > 2) install a valid geowebcache.xml into GEOWEBCACHE_CACHE_DIR > > I did not try to change the port into :8090 as you are having, that can cause > some other problems for you. > > I think that the error message which contains > "/usr/lib/jvm/Geoserver/geoserver/webapps/geoserver/../resources" is a bit > confusing for the user because there does not exist such directory of file. > > -Jukka Rahkonen- > > > > > > >> -----Alkuperäinen viesti----- >> Lähettäjä: Luís de Sousa [mailto:luis.a.de.so...@gmail.com] >> Lähetetty: 23. marraskuuta 2010 12:20 >> Vastaanottaja: Ryan Williams; geoserver-users@lists.sourceforge.net >> Aihe: Re: [Geoserver-users] Help with GeoWebCache >> >> 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/../resource >> s/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_inim >> age&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:4326&WI >> DTH=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_inim >> age&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:4326&WI >> DTH=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_inim >> age&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:4326&WI >> DTH=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_inim >> age&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:4326&WI >> DTH=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 >> > >> > ------------------------------------------------------------------------------ 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