[Geoserver-users] WMS Cascade from another Geoserver instance

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm trying to use geoserver 2.2.2 cascade and geowebcache to cache a
remote tile server based on geoserver 2.1.4 and served via WMS.

I can add the remote geoserver wms via the capabilities url and get a
list of layers, however when trying to preview a layer it fails to
access it.

The error I am getting is:

Caused by: org.geoserver.platform.ServiceException:
java.io.IOException: Server returned HTTP error code 404 for URL
http://localhost:8085/geoserver/ows?SERVICE=WMS&LAYERS=basemaps&CRS=EPSG:27700&FORMAT=image%2Fpng&HEIGHT=512&TRANSPARENT=TRUE&REQUEST=GetMap&BBOX=1346.748175220855,7097.996956234318,671066.5126380573,1346537.5258819074&WIDTH=256&STYLES=&VERSION=1.3.0
  at
org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:915)

The host and port is correct, but the correct url should be
/geoserver/wms?LAYERS=... etc

Any suggestions on how to configure this?

Thanks,
Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (MingW32)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJQw+1mAAoJENpFS/LwoFEvjb4H/3o3PWTxGx93SguTp8h63ErQ
whBo9VMnZzEsYsgYdpCEaibiU0yLDqHottdmGAl1dKdV+PpWqAYqlK7mTJ/BFDja
iK5hrRx7LiR4h3ndeXLmcnAFJA+SwLWU4en5hdFjdA/HNgF4ApmarPb1mwAZa3gL
YBNIeoA7Rz4KaXMiM116DjNodql0Ku6E3tnxZTakGoglsiPCENi1uUzekG1sCvV0
dUysA8bbZZGgahwXgEOLbPCzhla+sWIzVBCYwTepCbyzYmlXqOEcHf/8aW9z4MvS
hcc0KNGKYApkqeRDZBcLHtE9SvpUg+alZ+MkNJIGDRgZwck6osSr/oQb6CG1K/o=
=a4kT
-----END PGP SIGNATURE-----

On Sun, Dec 9, 2012 at 2:46 AM, Mark Paxton <mark@anonymised.com> wrote:

Caused by: org.geoserver.platform.ServiceException:
java.io.IOException: Server returned HTTP error code 404 for URL
http://localhost:8085/geoserver/ows?SERVICE=WMS&LAYERS=basemaps&CRS=EPSG:27700&FORMAT=image%2Fpng&HEIGHT=512&TRANSPARENT=TRUE&REQUEST=GetMap&BBOX=1346.748175220855,7097.996956234318,671066.5126380573,1346537.5258819074&WIDTH=256&STYLES=&VERSION=1.3.0
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:915)

The host and port is correct, but the correct url should be
/geoserver/wms?LAYERS=… etc

Any suggestions on how to configure this?

There is no way to configure this and the URL is correct.
All the geoserver/wms, geoserver/wfs and geoserver/wms are kept only for backwards compatibility,
the right url is indeed geoserver/ows and the WMS client that is doing the cascading is properly
using it, as reported by the other server capabilities document
(see http://localhost:8085/geoserver/ows?service=WMS&request=GetCapabilities)

It is quite strange that you get a 404, are you using a proxy in the middle that disallows the usage
of geoserver/ows?

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it