Discussion:
Help with GeoWebCache
(too old to reply)
Luís de Sousa
2010-11-22 11:23:18 UTC
Permalink
Dear all,

I've been using Geoserver for some time but just recently started trying
GeoWebCache. I can access the demo page, where all layers listed at:

http://localhost:8090/geoserver/gwc/demo

The problem is when I open one of the demos, all of the wms requests fail.
Using Firebug I can see that the server is replying with a "400 Bad
Request". Here's for instance one of the requests for ArcSample layer:

http://localhost:8090/geoserver/gwc/service/wms?LAYERS=nurc%3AArc_Sample&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT=256

I can't say what is wrong with this request. Do I need to do some
configuration before using GeoWebCache?

Thank you,

Luís
Imran Rajjad
2010-11-22 11:35:47 UTC
Permalink
What version of GS are you using, in 1.7.7 there used to be
geowebcache.xml in the data directory which needs to be configured.
You can find the configuration at GWC site.

regards,
Imran
Post by Luís de Sousa
Dear all,
I've been using Geoserver for some time but just recently started trying
http://localhost:8090/geoserver/gwc/demo
The problem is when I open one of the demos, all of the wms requests fail.
Using Firebug I can see that the server is replying with a "400 Bad
http://localhost:8090/geoserver/gwc/service/wms?LAYERS=nurc%3AArc_Sample&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT=256
I can't say what is wrong with this request. Do I need to do some
configuration before using GeoWebCache?
Thank you,
Luís
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
I.R
Luís de Sousa
2010-11-22 11:56:40 UTC
Permalink
Hi Imran,

I'm using Geoserver 2.0 and there's no geowebcache.xml file in the data
directory (or anywhere else in the Geoserver instalation directory). Do I
have to create one? Any sample I can find to see what is it like?

Thank you,

Luís
Post by Imran Rajjad
What version of GS are you using, in 1.7.7 there used to be
geowebcache.xml in the data directory which needs to be configured.
You can find the configuration at GWC site.
regards,
Imran
Post by Luís de Sousa
Dear all,
I've been using Geoserver for some time but just recently started trying
http://localhost:8090/geoserver/gwc/demo
The problem is when I open one of the demos, all of the wms requests
fail.
Post by Luís de Sousa
Using Firebug I can see that the server is replying with a "400 Bad
http://localhost:8090/geoserver/gwc/service/wms?LAYERS=nurc%3AArc_Sample&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT=256
Post by Luís de Sousa
I can't say what is wrong with this request. Do I need to do some
configuration before using GeoWebCache?
Thank you,
Luís
------------------------------------------------------------------------------
Post by Luís de Sousa
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
I.R
Imran Rajjad
2010-11-22 12:00:09 UTC
Permalink
Hi.

take your time with this.

http://docs.geoserver.org/stable/en/user/geowebcache/index.html

regards
Imran
Post by Luís de Sousa
Hi Imran,
I'm using Geoserver 2.0 and there's no geowebcache.xml file in the data
directory (or anywhere else in the Geoserver instalation directory). Do I
have to create one? Any sample I can find to see what is it like?
Thank you,
Luís
Post by Imran Rajjad
What version of GS are you using, in 1.7.7 there used to be
geowebcache.xml in the data directory which needs to be configured.
You can find the configuration at GWC site.
regards,
Imran
Post by Luís de Sousa
Dear all,
I've been using Geoserver for some time but just recently started trying
http://localhost:8090/geoserver/gwc/demo
The problem is when I open one of the demos, all of the wms requests fail.
Using Firebug I can see that the server is replying with a "400 Bad
http://localhost:8090/geoserver/gwc/service/wms?LAYERS=nurc%3AArc_Sample&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT=256
I can't say what is wrong with this request. Do I need to do some
configuration before using GeoWebCache?
Thank you,
Luís
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
I.R
--
I.R
Arne Kepp
2010-11-22 12:09:49 UTC
Permalink
1.7.7 is kind of old, I don't remember the causes for a 400 (without a
proper error message).

The request looks fine, and if all the layers are present in gwc/demo
then it appears that you have already set GEOSERVER_WMS_URL correctly.

Check the logfiles?

-Arne
Post by Luís de Sousa
Dear all,
I've been using Geoserver for some time but just recently started
trying GeoWebCache. I can access the demo page, where all layers
http://localhost:8090/geoserver/gwc/demo
The problem is when I open one of the demos, all of the wms requests
fail. Using Firebug I can see that the server is replying with a "400
http://localhost:8090/geoserver/gwc/service/wms?LAYERS=nurc%3AArc_Sample&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT=256
<http://localhost:8090/geoserver/gwc/service/wms?LAYERS=nurc%3AArc_Sample&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT=256>
I can't say what is wrong with this request. Do I need to do some
configuration before using GeoWebCache?
Thank you,
Luís
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Luís de Sousa
2010-11-22 12:28:07 UTC
Permalink
Ok, I went through the 2.0 documentation as Imran suggested. The demo page
is correctly listing all the layers and the ArcSample layer comes on the
4326 SRS, so no aditional configurations should be needed.

Querying Geoserver directly I get the expected reply:

http://localhost:8090/geoserver/wms?HEIGHT=330&WIDTH=660&LAYERS=nurc%3AArc_Sample&STYLES=&SRS=EPSG%3A4326&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=-234.140625,-116.71875,229.921875,115.3125

Querying GeoWebCache I get the "400 Bad Request" message:

http://localhost:8090/geoserver/gwc/service/wms?LAYERS=nurc%3AArc_Sample&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT=256

I listed the contents of the data_dir/gwc directory but it contains no logs.
Where can I find them?

Thank you,

Luís
Post by Arne Kepp
1.7.7 is kind of old, I don't remember the causes for a 400 (without a
proper error message).
The request looks fine, and if all the layers are present in gwc/demo then
it appears that you have already set GEOSERVER_WMS_URL correctly.
Check the logfiles?
-Arne
Imran Rajjad
2010-11-22 12:37:16 UTC
Permalink
Hi,

are you querying directly through the browser address bar? if yes then
WMS returns a single image which you are able to see, that is not the
case with GWC, you need to request it through a certain grid model.
Are you using any Web Mapping API? You can do one thing, do to the gwc
demo page and open the demo and see if it works or not. Do not
directly query GWC through your browser, it will never work since it
comes back with more than one image.

regards,
Imran
Post by Luís de Sousa
Ok, I went through the 2.0 documentation as Imran suggested. The demo page
is correctly listing all the layers and the ArcSample layer comes on the
4326 SRS, so no aditional configurations should be needed.
http://localhost:8090/geoserver/wms?HEIGHT=330&WIDTH=660&LAYERS=nurc%3AArc_Sample&STYLES=&SRS=EPSG%3A4326&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=-234.140625,-116.71875,229.921875,115.3125
http://localhost:8090/geoserver/gwc/service/wms?LAYERS=nurc%3AArc_Sample&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT=256
I listed the contents of the data_dir/gwc directory but it contains no logs.
Where can I find them?
Thank you,
Luís
Post by Arne Kepp
1.7.7 is kind of old, I don't remember the causes for a 400 (without a
proper error message).
The request looks fine, and if all the layers are present in gwc/demo then
it appears that you have already set GEOSERVER_WMS_URL correctly.
Check the logfiles?
-Arne
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
I.R
Arne Kepp
2010-11-22 12:51:30 UTC
Permalink
Post by Imran Rajjad
Hi,
are you querying directly through the browser address bar? if yes then
WMS returns a single image which you are able to see, that is not the
case with GWC, you need to request it through a certain grid model.
Are you using any Web Mapping API? You can do one thing, do to the gwc
demo page and open the demo and see if it works or not. Do not
directly query GWC through your browser, it will never work since it
comes back with more than one image.
regards,
Imran
That's right. We use advanced flux capacitors to warp the HTTP
space-time continuum, causing all normal browser rendering engines to
crash and burn. This can cause gamma radiation, if the bounds are
sufficiently off, so you need to make sure your computer is equipped
with ECC memory.

Oh, wait... this one works?

http://maps.opengeo.org/geowebcache/service/wms?LAYERS=bluemarble&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT=256

That's a request for a tile right there. In fact, it's Luis' URL ,
except I replaced the host and the layer name.

-Arne

ps. We've had this discussion before, you're the one who *wanted* GWC to
return multiple tiles, but it does not:
http://old.nabble.com/GeoWebCache-configuration-td28597485.html#a28854085
Arne Kepp
2010-11-22 12:57:04 UTC
Permalink
Depends on what container you use.

If you are just running the Windows installer or the -bin distribution,
check the commandline window from which you started Jetty/GeoServer ?

Those messages are probably mirrored in the
<GEOSERVER_DATA_DIR>/logs/geoserver.log file

In Tomcat it's usually in logs/catalina.out , relative to the Tomcat root.

-Arne
<snip>
I listed the contents of the data_dir/gwc directory but it contains no
logs. Where can I find them?
Thank you,
Luís
1.7.7 is kind of old, I don't remember the causes for a 400
(without a proper error message).
The request looks fine, and if all the layers are present in
gwc/demo then it appears that you have already set
GEOSERVER_WMS_URL correctly.
Check the logfiles?
-Arne
Luís de Sousa
2010-11-22 15:36:31 UTC
Permalink
Ok, I found this in the geoserver.log file:

2010-11-22 12:15:03,824 ERROR [util.XMLConfiguration] - Configuration file
cannot be read or does not exist!
2010-11-22 12:15:03,825 ERROR [layer.TileLayerDispatcher] - Error parsing
file
/usr/lib/jvm/Geoserver/geoserver/webapps/geoserver/../resources/geowebcache.xml
2010-11-22 12:15:03,825 ERROR [layer.TileLayerDispatcher] - Failed to add
layers from /usr/lib/jvm/Geoserver/geoserver/webapps/geoserver/../resources
2010-11-22 12:15:03,825 INFO [layer.TileLayerDispatcher] - Adding layers
from /usr/lib/jvm/Geoserver/geoserver/webapps/geoserver/../resources
2010-11-22 12:15:03,825 ERROR [layer.TileLayerDispatcher] - Configuration
/usr/lib/jvm/Geoserver/geoserver/webapps/geoserver/../resources contained no
layers.

Can anyone tell me where exactly where the resources should be?

Thank you,

Luís
Luís de Sousa
2010-11-22 16:47:12 UTC
Permalink
Hello again,

Per the Geoserver documentation I should have a geowebcache.xml file at
data_dir/gwc. Per the GeoWebCache documentation there should be a
geowebcache-servlet.xml file at WEB-INF and a geowebcache.xml file at
WEB-INF/classes. But at run time Geoserver seems to be looking for the
geowebcache.xml file at some resources directory. Does anyone knows where
the correct location is?

Now, the question is, if I don't have a geowebcache.xml file why is the demo
page listing all the layers correctly?

Thank you,

Luís
Ryan Williams
2010-11-22 17:40:54 UTC
Permalink
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
Luís de Sousa
2010-11-23 10:19:35 UTC
Permalink
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
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
Arne Kepp
2010-11-23 10:37:28 UTC
Permalink
Yeah, it's been too long.

In 1.7.7 the layers are retrieved from the GeoServer catalog, but the
GetMap requests still happen through HTTP.

So my assumption, that you had set GEOSERVER_WMS_URL , since you saw all
the layers in the demo, was incorrect.

See http://docs.geoserver.org/1.7.7/user/geowebcache/setup.html

-Arne
Post by Luís de Sousa
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
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] -
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] -
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
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
Rahkonen Jukka
2010-11-23 12:24:17 UTC
Permalink
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ähetetty: 23. marraskuuta 2010 12:20
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
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] -
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] -
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
Post by Ryan Williams
Luis,
Back to your original question, where one layer didn't run
properly in the
Post by Ryan Williams
GWC demos; Does that layer load correctly in the geoserver
Layer Preview?
Post by Ryan Williams
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
Post by Ryan Williams
you are serving out of Geoserver.
Luís de Sousa
2010-11-23 14:41:33 UTC
Permalink
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
Post by Rahkonen Jukka
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>
2010-11-22 12:15:03,825 ERROR [layer.TileLayerDispatcher] - Configuration /usr/lib/jvm/Geoserver/geoserver/webapps/geoserver/../resources contained no layers.
 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ähetetty: 23. marraskuuta 2010 12:20
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
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] -
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] -
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
Post by Ryan Williams
Luis,
Back to your original question, where one layer didn't run
properly in the
Post by Ryan Williams
GWC demos; Does that layer load correctly in the geoserver
Layer Preview?
Post by Ryan Williams
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
Post by Ryan Williams
you are serving out of Geoserver.
Luís de Sousa
2010-11-25 10:58:10 UTC
Permalink
Dear all,

I'm still stuck with this error:

code="OperationNotSupported" locator="GetCapabilities?SERVICE=WMS"No
operation wms 1.1.0 GetCapabilities?SERVICE=WMS

Does anyone knows what's the cause? The Geoserver log is throughing
out these lines when GWC starts:

2010-11-25 10:42:52,778 INFO [util.XMLConfiguration] - Failed to find
geowebcache.xml. This is not a problem unless you are trying to use a
custom XML configuration file.
2010-11-25 10:42:52,778 ERROR [layer.TileLayerDispatcher] - Unable to
determine configuration directory.
2010-11-25 10:43:06,561 INFO [geowebcache.GeoWebCacheDispatcher] -
Read 425 from blank PNG file (expected 425).

But these doesn't seem to be related. What else can I do to test GWC?

Thank you,

Luís
Arne Kepp
2010-11-25 13:47:39 UTC
Permalink
The problem is probably caused by what you describe in your other email:

code="OperationNotSupported" locator="GetCapabilities?SERVICE=WMS"No
operation wms 1.1.0 GetCapabilities?SERVICE=WMS

Unfortunately, I don't know the cause of that message, and since 1.7.x is a dead branch it's hard to prioritize it. (See [1] if you need long term support)

Is there any reason why you are not using GeoServer 2.0.2 ? Changing the port to 8090 is not a problem in that release, since all the communication happens internally.

-Arne

1: http://geoserver.org/display/GEOS/Commercial+Support
Post by Luís de Sousa
Dear all,
code="OperationNotSupported" locator="GetCapabilities?SERVICE=WMS"No
operation wms 1.1.0 GetCapabilities?SERVICE=WMS
Does anyone knows what's the cause? The Geoserver log is throughing
2010-11-25 10:42:52,778 INFO [util.XMLConfiguration] - Failed to find
geowebcache.xml. This is not a problem unless you are trying to use a
custom XML configuration file.
2010-11-25 10:42:52,778 ERROR [layer.TileLayerDispatcher] - Unable to
determine configuration directory.
2010-11-25 10:43:06,561 INFO [geowebcache.GeoWebCacheDispatcher] -
Read 425 from blank PNG file (expected 425).
But these doesn't seem to be related. What else can I do to test GWC?
Thank you,
Luís
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Gabriel Roldán
2010-11-26 18:20:25 UTC
Permalink
It's probably caused by the GeoServer Dispatcher system while looking up
for a bean that handles the GetCaps operation on a "wms service" for
version 1.1.0. Rationale being that GeoServer implements 1.1.1 and no
1.1.0. But that's just guessing based on the error description and what
the Dispatcher does this days:

if (operation == null || !exists) {
String msg = "No such operation " + req;
throw new ServiceException(msg, "OperationNotSupported",
req.getRequest());
}

Note it adds the request as a locator parameter to the ServiceException
just like in what you're getting.

If you find how to pass 1.1.1 as version instead of 1.1.0 that might fix
it.

Hope that helps,
Gabriel
Post by Luís de Sousa
code="OperationNotSupported" locator="GetCapabilities?SERVICE=WMS"No
operation wms 1.1.0 GetCapabilities?SERVICE=WMS
Unfortunately, I don't know the cause of that message, and since 1.7.x is a dead branch it's hard to prioritize it. (See [1] if you need long term support)
Is there any reason why you are not using GeoServer 2.0.2 ? Changing the port to 8090 is not a problem in that release, since all the communication happens internally.
-Arne
1: http://geoserver.org/display/GEOS/Commercial+Support
Post by Luís de Sousa
Dear all,
code="OperationNotSupported" locator="GetCapabilities?SERVICE=WMS"No
operation wms 1.1.0 GetCapabilities?SERVICE=WMS
Does anyone knows what's the cause? The Geoserver log is throughing
2010-11-25 10:42:52,778 INFO [util.XMLConfiguration] - Failed to find
geowebcache.xml. This is not a problem unless you are trying to use a
custom XML configuration file.
2010-11-25 10:42:52,778 ERROR [layer.TileLayerDispatcher] - Unable to
determine configuration directory.
2010-11-25 10:43:06,561 INFO [geowebcache.GeoWebCacheDispatcher] -
Read 425 from blank PNG file (expected 425).
But these doesn't seem to be related. What else can I do to test GWC?
Thank you,
Luís
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Gabriel Roldan
***@opengeo.org
Expert service straight from the developers
Luís de Sousa
2010-11-26 16:08:05 UTC
Permalink
Dear all,

I've been researching around this issue for the past few days, without
success. Googling for this error returns zero (0) results.

Is there any way I can get specific help for GWC, a forum or mail-list
I can post to?

Thank you,

Luís
Post by Luís de Sousa
Dear all,
code="OperationNotSupported" locator="GetCapabilities?SERVICE=WMS"No
operation wms 1.1.0 GetCapabilities?SERVICE=WMS
Does anyone knows what's the cause? The Geoserver log is throughing
2010-11-25 10:42:52,778 INFO [util.XMLConfiguration] - Failed to find
geowebcache.xml. This is not a problem unless you are trying to use a
custom XML configuration file.
2010-11-25 10:42:52,778 ERROR [layer.TileLayerDispatcher] - Unable to
determine configuration directory.
2010-11-25 10:43:06,561 INFO [geowebcache.GeoWebCacheDispatcher] -
Read 425 from blank PNG file (expected 425).
But these doesn't seem to be related. What else can I do to test GWC?
Thank you,
Luís
Luís de Sousa
2010-11-29 16:59:15 UTC
Permalink
Hello again,

The last replies to these messages were cryptic to me, but I've tried
a few other things meanwhile. I'm using Geoserver 2.0.0 in my
workstation on Ubuntu 10.04; I'm also managing six other Geoserver
2.0.0 instances at six different servers on Debian 64-bits, so I went
trying GWC in one of these servers. The results are exactly the same:
trying GWC out of the box I get the "400 Bad Request" message; then,
including the GEOSERVER_WMS_URL parameter pointing to the 8090 port in
the web.xml file I get the "OperationNotSupported" message.

Hence this has nothing to do with OS or installation, it is a problem
restricted to either Geoserver or GWC. Can someone please try GWC with
Geoserver running at port 8090?

Would an update to Geoserver 2.0.2, solve anything? My hunch is this
being an issue with GWC, is the bundled version with Geoserver 2.0.2
any different from version 2.0.0?

Thank you once more,

Luís
Post by Luís de Sousa
Dear all,
I've been researching around this issue for the past few days, without
success. Googling for this error returns zero (0) results.
Is there any way I can get specific help for GWC, a forum or mail-list
I can post to?
Thank you,
Luís
Post by Luís de Sousa
Dear all,
code="OperationNotSupported" locator="GetCapabilities?SERVICE=WMS"No
operation wms 1.1.0 GetCapabilities?SERVICE=WMS
Does anyone knows what's the cause? The Geoserver log is throughing
2010-11-25 10:42:52,778 INFO [util.XMLConfiguration] - Failed to find
geowebcache.xml. This is not a problem unless you are trying to use a
custom XML configuration file.
2010-11-25 10:42:52,778 ERROR [layer.TileLayerDispatcher] - Unable to
determine configuration directory.
2010-11-25 10:43:06,561 INFO [geowebcache.GeoWebCacheDispatcher] -
Read 425 from blank PNG file (expected 425).
But these doesn't seem to be related. What else can I do to test GWC?
Thank you,
Luís
S***@csiro.au
2010-11-30 06:20:41 UTC
Permalink
Hello Luis,
You need to set the WMS getCapabilities URL in the constructor field of gwcWMSConfig bean. I am assuming you are running separate instance of geowebcache not the one bundled with GeoServer. Please download the latest version of geowebcache and try. It should work.

Regards
S. M. Guru


-----Original Message-----
From: Luís de Sousa [mailto:***@gmail.com]
Sent: Tuesday, 30 November 2010 3:59 AM
To: geoserver-***@lists.sourceforge.net
Subject: Re: [Geoserver-users] Help with GeoWebCache

Hello again,

The last replies to these messages were cryptic to me, but I've tried
a few other things meanwhile. I'm using Geoserver 2.0.0 in my
workstation on Ubuntu 10.04; I'm also managing six other Geoserver
2.0.0 instances at six different servers on Debian 64-bits, so I went
trying GWC in one of these servers. The results are exactly the same:
trying GWC out of the box I get the "400 Bad Request" message; then,
including the GEOSERVER_WMS_URL parameter pointing to the 8090 port in
the web.xml file I get the "OperationNotSupported" message.

Hence this has nothing to do with OS or installation, it is a problem
restricted to either Geoserver or GWC. Can someone please try GWC with
Geoserver running at port 8090?

Would an update to Geoserver 2.0.2, solve anything? My hunch is this
being an issue with GWC, is the bundled version with Geoserver 2.0.2
any different from version 2.0.0?

Thank you once more,

Luís
Post by Luís de Sousa
Dear all,
I've been researching around this issue for the past few days, without
success. Googling for this error returns zero (0) results.
Is there any way I can get specific help for GWC, a forum or mail-list
I can post to?
Thank you,
Luís
Post by Luís de Sousa
Dear all,
code="OperationNotSupported" locator="GetCapabilities?SERVICE=WMS"No
operation wms 1.1.0 GetCapabilities?SERVICE=WMS
Does anyone knows what's the cause? The Geoserver log is throughing
2010-11-25 10:42:52,778 INFO [util.XMLConfiguration] - Failed to find
geowebcache.xml. This is not a problem unless you are trying to use a
custom XML configuration file.
2010-11-25 10:42:52,778 ERROR [layer.TileLayerDispatcher] - Unable to
determine configuration directory.
2010-11-25 10:43:06,561 INFO [geowebcache.GeoWebCacheDispatcher] -
Read 425 from blank PNG file (expected 425).
But these doesn't seem to be related. What else can I do to test GWC?
Thank you,
Luís
Luís de Sousa
2010-11-30 10:38:32 UTC
Permalink
Post by S***@csiro.au
Hello Luis,
 You need to set the WMS getCapabilities URL in the constructor field of gwcWMSConfig bean. I am assuming you are running separate instance of geowebcache not the one bundled with GeoServer. Please download the latest version of geowebcache and try. It should work.
Regards
S. M. Guru
Hello,

I am using the version bundled with Geoserver. How do I do that
constructor field setting?

Thank you,

Luís
Arne Kepp
2010-11-30 09:28:41 UTC
Permalink
Yes, suggested you move to 2.0.2 earlier because it avoids HTTP for
internal requests and thus doesn't care about port 8090 vs 8080.

-Arne
Post by Luís de Sousa
Hello again,
The last replies to these messages were cryptic to me, but I've tried
a few other things meanwhile. I'm using Geoserver 2.0.0 in my
workstation on Ubuntu 10.04; I'm also managing six other Geoserver
2.0.0 instances at six different servers on Debian 64-bits, so I went
trying GWC out of the box I get the "400 Bad Request" message; then,
including the GEOSERVER_WMS_URL parameter pointing to the 8090 port in
the web.xml file I get the "OperationNotSupported" message.
Hence this has nothing to do with OS or installation, it is a problem
restricted to either Geoserver or GWC. Can someone please try GWC with
Geoserver running at port 8090?
Would an update to Geoserver 2.0.2, solve anything? My hunch is this
being an issue with GWC, is the bundled version with Geoserver 2.0.2
any different from version 2.0.0?
Thank you once more,
Luís
Post by Luís de Sousa
Dear all,
I've been researching around this issue for the past few days, without
success. Googling for this error returns zero (0) results.
Is there any way I can get specific help for GWC, a forum or mail-list
I can post to?
Thank you,
Luís
Post by Luís de Sousa
Dear all,
code="OperationNotSupported" locator="GetCapabilities?SERVICE=WMS"No
operation wms 1.1.0 GetCapabilities?SERVICE=WMS
Does anyone knows what's the cause? The Geoserver log is throughing
2010-11-25 10:42:52,778 INFO [util.XMLConfiguration] - Failed to find
geowebcache.xml. This is not a problem unless you are trying to use a
custom XML configuration file.
2010-11-25 10:42:52,778 ERROR [layer.TileLayerDispatcher] - Unable to
determine configuration directory.
2010-11-25 10:43:06,561 INFO [geowebcache.GeoWebCacheDispatcher] -
Read 425 from blank PNG file (expected 425).
But these doesn't seem to be related. What else can I do to test GWC?
Thank you,
Luís
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Luís de Sousa
2010-11-30 10:40:35 UTC
Permalink
Yes, suggested you move to 2.0.2 earlier because it avoids HTTP for internal
requests and thus doesn't care about port 8090 vs 8080.
-Arne
Ok Arne, what amount of effort are we talking here? Do I have to
uninstall 2.0.0 and install 2.0.2? Or is there any process by which I
can make an upgrade?

Thank you,

Luís
Arne Kepp
2010-12-01 13:22:56 UTC
Permalink
Post by Luís de Sousa
Yes, suggested you move to 2.0.2 earlier because it avoids HTTP for internal
requests and thus doesn't care about port 8090 vs 8080.
-Arne
Ok Arne, what amount of effort are we talking here? Do I have to
uninstall 2.0.0 and install 2.0.2? Or is there any process by which I
can make an upgrade?
Thank you,
Luís
Hi,

generally you just carry your data directory forward, provided you don't
depend on features/bugs specific to the 1.7.x series.

Be sure to have a look at http://geoserver.org/display/GEOS/Upgrading+To+2.0

-Arne
Luís de Sousa
2010-12-02 10:34:34 UTC
Permalink
Ok folks it finally worked.

I upgraded from Geoserver 2.0 to Geoserver 2.0.2 and it all went
smoothly. GWC works out of the box, I didn't even had to edit the
web.xml file to tell GWC that Geoserver is running at port 8090.

Many thanks to everyone that helped,

Luís

Continue reading on narkive:
Loading...