Discussion:
[Geoserver-users] geowebcache and different port
a***@inwind.it
16 years ago
Permalink
Hi all,
I encountered a problem using GeoWebCache in Geoserver (2.0-RC1, in
Windows XP).
If I use Geoserver in the default 8080 port all it's ok, and in
the http://localhost:8080/geoserver/gwc/demo page I can click any layer and
I'll see the cached map.

If I change the port to 8022, or 8099, or... I'll see
only empty squares. Below are my steps:

I changed in the jetty.xml file the
port number to 8022 (and Geoserver, without using GeoWebCache runs well);
then
I changed also the web.xml file (as explained here http://docs.geoserver.
org/trunk/en/user/geowebcache/setup.html) adding this code

<context-param>

<param-name>GEOSERVER_WMS_URL</param-name>
<param-
value>http://localhost:8022/wms?request=GetCapabilities</param-value>

</context-param>

and I had the problem explained before.

Do you have any
advices?
thank you very much
Ale


This is the last part of geoserver.log:
2009-
08-28 11:56:52,798 INFO [layer.TileLayerDispatcher] - Adding layers from
GeoServer Catalog Listener
2009-08-28 11:56:52,798 INFO [layer.
TileLayerDispatcher] - Adding: nurc:Arc_Sample
2009-08-28 11:56:52,798 INFO
[layer.TileLayerDispatcher] - Adding: nurc:Pk50095
2009-08-28 11:56:52,798 INFO
[layer.TileLayerDispatcher] - Adding: nurc:mosaic
2009-08-28 11:56:52,798 INFO
[layer.TileLayerDispatcher] - Adding: nurc:Img_Sample
2009-08-28 11:56:52,798
INFO [layer.TileLayerDispatcher] - Adding: sf:archsites
2009-08-28 11:56:52,798
INFO [layer.TileLayerDispatcher] - Adding: sf:bugsites
2009-08-28 11:56:52,798
INFO [layer.TileLayerDispatcher] - Adding: sf:restricted
2009-08-28 11:56:
52,798 INFO [layer.TileLayerDispatcher] - Adding: sf:roads
2009-08-28 11:56:
52,798 INFO [layer.TileLayerDispatcher] - Adding: sf:streams
2009-08-28 11:56:
52,814 INFO [layer.TileLayerDispatcher] - Adding: sf:sfdem
2009-08-28 11:56:
52,814 INFO [layer.TileLayerDispatcher] - Adding: tiger:giant_polygon
2009-08-
28 11:56:52,814 INFO [layer.TileLayerDispatcher] - Adding: tiger:poi
2009-08-28
11:56:52,814 INFO [layer.TileLayerDispatcher] - Adding: tiger:poly_landmarks

2009-08-28 11:56:52,814 INFO [layer.TileLayerDispatcher] - Adding: tiger:
tiger_roads
2009-08-28 11:56:52,814 INFO [layer.TileLayerDispatcher] - Adding:
topp:GISPRD_CATCHMENT_LEVEL3
2009-08-28 11:56:52,814 INFO [layer.
TileLayerDispatcher] - Adding: topp:GISPRD_CATCHMENT_LEVEL6
2009-08-28 11:56:
52,814 INFO [layer.TileLayerDispatcher] - Adding: topp:GISPRD_NUEUV9POLY
2009-
08-28 11:56:52,814 INFO [layer.TileLayerDispatcher] - Adding: topp:
GISPRD_NUEUV9_NUTS2
2009-08-28 11:56:52,814 INFO [layer.TileLayerDispatcher] -
Adding: topp:NUTS3_RG_100K_2006
2009-08-28 11:56:52,814 INFO [layer.
TileLayerDispatcher] - Adding: topp:SAMA
2009-08-28 11:56:52,814 INFO [layer.
TileLayerDispatcher] - Adding: topp:states
2009-08-28 11:56:52,814 INFO [layer.
TileLayerDispatcher] - Adding: topp:tasmania_cities
2009-08-28 11:56:52,814
INFO [layer.TileLayerDispatcher] - Adding: topp:tasmania_roads
2009-08-28 11:56:
52,814 INFO [layer.TileLayerDispatcher] - Adding: topp:
tasmania_state_boundaries
2009-08-28 11:56:52,814 INFO [layer.
TileLayerDispatcher] - Adding: topp:tasmania_water_bodies
2009-08-28 11:56:
52,814 INFO [layer.TileLayerDispatcher] - Adding: spearfish
2009-08-28 11:56:
52,814 INFO [layer.TileLayerDispatcher] - Adding: tasmania
2009-08-28 11:56:
52,814 INFO [layer.TileLayerDispatcher] - Adding: tiger-ny
2009-08-28 11:56:
52,814 ERROR [layer.TileLayerDispatcher] - Error parsing file C:\Program
Files\GeoServer 2.0-RC1\webapps\geoserver\..\resources\geowebcache.xml
2009-08-
28 11:56:52,814 ERROR [layer.TileLayerDispatcher] - Failed to add layers from C:
\Program Files\GeoServer 2.0-RC1\webapps\geoserver\..\resources
2009-08-28 11:
56:52,814 INFO [layer.TileLayerDispatcher] - Adding layers from C:\Program
Files\GeoServer 2.0-RC1\webapps\geoserver\..\resources
2009-08-28 11:56:52,814
ERROR [layer.TileLayerDispatcher] - Configuration C:\Program Files\GeoServer
2.0-RC1\webapps\geoserver\..\resources contained no layers.
2009-08-28 11:56:
52,830 INFO [reload.ReloadRestlet] - Configuration reloaded. Read 28 layers
from configuration resources.
2009-08-28 11:56:59,189 ERROR [geowebcache.
GeoWebCacheDispatcher] - Unexpected response code from backend: 404 for http:
//localhost:8022/wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=1024&HEIGHT=768&BBOX=-180.0,0.0,-90.0,67.5 http://localhost:
8022/geoserver/gwc/service/wms
2009-08-28 11:56:59,189 ERROR [geowebcache.
GeoWebCacheDispatcher] - Unexpected response code from backend: 404 for http:
//localhost:8022/wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=512&HEIGHT=768&BBOX=-90.0,0.0,-45.0,67.5 http://localhost:
8022/geoserver/gwc/service/wms
2009-08-28 11:56:59,189 ERROR [geowebcache.
GeoWebCacheDispatcher] - Unexpected response code from backend: 404 for http:
//localhost:8022/wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=1024&HEIGHT=768&BBOX=-180.0,0.0,-90.0,67.5 http://localhost:
8022/geoserver/gwc/service/wms
2009-08-28 11:56:59,205 ERROR [geowebcache.
GeoWebCacheDispatcher] - Unexpected response code from backend: 404 for http:
//localhost:8022/wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=512&HEIGHT=768&BBOX=-90.0,0.0,-45.0,67.5 http://localhost:
8022/geoserver/gwc/service/wms
2009-08-28 11:56:59,205 ERROR [geowebcache.
GeoWebCacheDispatcher] - Unexpected response code from backend: 404 for http:
//localhost:8022/wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=512&HEIGHT=768&BBOX=-90.0,0.0,-45.0,67.5 http://localhost:
8022/geoserver/gwc/service/wms
2009-08-28 11:56:59,205 ERROR [geowebcache.
GeoWebCacheDispatcher] - Unexpected response code from backend: 404 for http:
//localhost:8022/wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=512&HEIGHT=768&BBOX=-90.0,0.0,-45.0,67.5 http://localhost:
8022/geoserver/gwc/service/wms
2009-08-28 11:56:59,205 ERROR [geowebcache.
GeoWebCacheDispatcher] - Unexpected response code from backend: 404 for http:
//localhost:8022/wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=1024&HEIGHT=768&BBOX=-180.0,0.0,-90.0,67.5 http://localhost:
8022/geoserver/gwc/service/wms
2009-08-28 11:56:59,205 ERROR [geowebcache.
GeoWebCacheDispatcher] - Unexpected response code from backend: 404 for http:
//localhost:8022/wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=1024&HEIGHT=768&BBOX=-180.0,0.0,-90.0,67.5 http://localhost:
8022/geoserver/gwc/service/wms


And this from the request.log:
127.0.0.1 - -
[28/Aug/2009:09:56:51 +0000] "GET /geoserver/gwc/demo HTTP/1.1" 200 1631

127.0.0.1 - - [28/Aug/2009:09:56:52 +0000] "POST /geoserver/gwc/rest/reload
HTTP/1.1" 200 494
127.0.0.1 - - [28/Aug/2009:09:56:54 +0000] "GET
/geoserver/gwc/demo HTTP/1.1" 200 1631
127.0.0.1 - - [28/Aug/2009:09:56:59
+0000] "GET /geoserver/gwc/demo/topp:states?srs=EPSG:4326 HTTP/1.1" 200 725

127.0.0.1 - - [28/Aug/2009:09:56:59 +0000] "GET /wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=512&HEIGHT=768&BBOX=-90.0,0.0,-45.0,67.5 HTTP/1.1" 404 1290

127.0.0.1 - - [28/Aug/2009:09:56:59 +0000] "GET /wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=1024&HEIGHT=768&BBOX=-180.0,0.0,-90.0,67.5 HTTP/1.1" 404 1290

127.0.0.1 - - [28/Aug/2009:09:56:59 +0000] "GET /geoserver/gwc/service/wms?
LAYERS=topp%3Astates&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1
&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%
3A4326&BBOX=-112.5,22.5,-90,45&WIDTH=256&HEIGHT=256 HTTP/1.1" 400 401

127.0.0.1 - - [28/Aug/2009:09:56:59 +0000] "GET /wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=1024&HEIGHT=768&BBOX=-180.0,0.0,-90.0,67.5 HTTP/1.1" 404 1290

127.0.0.1 - - [28/Aug/2009:09:56:59 +0000] "GET /geoserver/gwc/service/wms?
LAYERS=topp%3Astates&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1
&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%
3A4326&BBOX=-90,22.5,-67.5,45&WIDTH=256&HEIGHT=256 HTTP/1.1" 400 400
127.0.0.1
- - [28/Aug/2009:09:56:59 +0000] "GET /geoserver/gwc/service/wms?LAYERS=topp%
3Astates&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1
&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%
3A4326&BBOX=-135,22.5,-112.5,45&WIDTH=256&HEIGHT=256 HTTP/1.1" 400 401

127.0.0.1 - - [28/Aug/2009:09:56:59 +0000] "GET /wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=512&HEIGHT=768&BBOX=-90.0,0.0,-45.0,67.5 HTTP/1.1" 404 1290

127.0.0.1 - - [28/Aug/2009:09:56:59 +0000] "GET /geoserver/gwc/service/wms?
LAYERS=topp%3Astates&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1
&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%
3A4326&BBOX=-67.5,22.5,-45,45&WIDTH=256&HEIGHT=256 HTTP/1.1" 400 400
127.0.0.1
- - [28/Aug/2009:09:56:59 +0000] "GET /wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=512&HEIGHT=768&BBOX=-90.0,0.0,-45.0,67.5 HTTP/1.1" 404 1290

127.0.0.1 - - [28/Aug/2009:09:56:59 +0000] "GET /geoserver/gwc/service/wms?
LAYERS=topp%3Astates&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1
&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%
3A4326&BBOX=-67.5,45,-45,67.5&WIDTH=256&HEIGHT=256 HTTP/1.1" 400 400
127.0.0.1
- - [28/Aug/2009:09:56:59 +0000] "GET /wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=512&HEIGHT=768&BBOX=-90.0,0.0,-45.0,67.5 HTTP/1.1" 404 1290

127.0.0.1 - - [28/Aug/2009:09:56:59 +0000] "GET /geoserver/gwc/service/wms?
LAYERS=topp%3Astates&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1
&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%
3A4326&BBOX=-90,45,-67.5,67.5&WIDTH=256&HEIGHT=256 HTTP/1.1" 400 400
127.0.0.1
- - [28/Aug/2009:09:56:59 +0000] "GET /wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=1024&HEIGHT=768&BBOX=-180.0,0.0,-90.0,67.5 HTTP/1.1" 404 1290

127.0.0.1 - - [28/Aug/2009:09:56:59 +0000] "GET /geoserver/gwc/service/wms?
LAYERS=topp%3Astates&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1
&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%
3A4326&BBOX=-112.5,45,-90,67.5&WIDTH=256&HEIGHT=256 HTTP/1.1" 400 401

127.0.0.1 - - [28/Aug/2009:09:56:59 +0000] "GET /wms?request=GetCapabilities?
SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=topp:
states&EXCEPTIONS=application/vnd.ogc.
se_inimage&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png&SRS=EPSG:
4326&WIDTH=1024&HEIGHT=768&BBOX=-180.0,0.0,-90.0,67.5 HTTP/1.1" 404 1290

127.0.0.1 - - [28/Aug/2009:09:56:59 +0000] "GET /geoserver/gwc/service/wms?
LAYERS=topp%3Astates&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1
&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%
3A4326&BBOX=-135,45,-112.5,67.5&WIDTH=256&HEIGHT=256 HTTP/1.1" 400 401
Arne Kepp
16 years ago
Permalink
Hi,

thank you for bringing this up, I think it's a combination of being too
busy (I wanted to kick out all the code that requires this in the first
place) and a documentation bug I created a while ago.

Can you try dropping the part including and after the "?" so probably

<context-param>
<param-name>GEOSERVER_WMS_URL</param-name>
<param-value>http://localhost:8022/geoserver/wms</param-value>
</context-param>


-Arne
...
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers
a***@inwind.it
16 years ago
Permalink
Perfect! Now it works :)
thank you very much.
Ale
----Messaggio originale----
Data: 28/08/2009 13.03
Ogg: Re: [Geoserver-users] geowebcache
and different port
Hi,
thank you for bringing this up, I think it's a
combination of being too
busy (I wanted to kick out all the code that
requires this in the first
place) and a documentation bug I created a while
ago.
Can you try dropping the part including and after the "?" so probably
<context-param>
<param-name>GEOSERVER_WMS_URL</param-name>
<param-value>http://localhost:8022/geoserver/wms</param-value>
</context-param>
-Arne
Post by a***@inwind.it
Hi
all,
Post by a***@inwind.it
I encountered a problem using GeoWebCache in Geoserver (2.0-RC1, in
Windows XP).
Post by a***@inwind.it
If I use Geoserver in the default 8080 port all it's ok, and
in
Post by a***@inwind.it
the http://localhost:8080/geoserver/gwc/demo page I can click any layer
and
Post by a***@inwind.it
I'll see the cached map.
If I change the port to 8022, or 8099,
or... I'll see
Post by a***@inwind.it
I changed in
the jetty.xml file the
Post by a***@inwind.it
port number to 8022 (and Geoserver, without using
GeoWebCache runs well);
Post by a***@inwind.it
then
I changed also the web.xml file (as
explained here http://docs.geoserver.
Post by a***@inwind.it
org/trunk/en/user/geowebcache/setup.
html) adding this code
Post by a***@inwind.it
<context-param>
<param-
name>GEOSERVER_WMS_URL</param-name>
Post by a***@inwind.it
<param-
//localhost:8022/wms?request=GetCapabilities</param-value>
Post by a***@inwind.it
</context-
param>
Post by a***@inwind.it
and I had the problem explained before.
Do you have any
advices?
Post by a***@inwind.it
thank you very much
Ale
--
Arne Kepp
//opengeo.org
Expert service straight from the developers
Loading...