Ok, this is one of the shortcomings of the print module - it really doesn't
have any better integration with GeoServer than running the standalone
MapFish print servlet would. So even though you might expect that requests
to GeoServer would automatically be permitted, the default only does so if
GeoServer is running on localhost.
Try finding the 'hosts' section in printing/config.yaml (it's a text file in
the GeoServer data directory with a fairly straightforward format) and
adding a line like this:
- !dnsMatch
host: shagrat.icc.es
Make sure the indentation matches up with the surrounding lines.
--
David Winslow
OpenGeo - http://opengeo.org/
On Wed, Oct 19, 2011 at 2:55 AM, jyby <[email protected]> wrote:
> Hi, firstly thanks for the advice.
>
> I've tried to print the example on Geosever website, and it doesn't work,
> so
> I checked the geoserver log file to find out what happened and that's what
> it says:
>
> 2011-10-18 12:51:04,624 WARN [servlet.BaseMapServlet] - Cannot delete
> file:C:\WINDO
>
> \TEMP\Jetty_0_0_0_0_8080_geoserver__geoserver__ud5kwd\mapfish-print600352759109732731.pdf.printout
>
> 2011-10-18 12:51:04,624 ERROR [servlet.BaseMapServlet] - Error while
> generating PDF
>
> DocumentException:
> org.mapfish.print.InvalidJsonValueException: spec.layers[0].baseURL has an
> invalid value: http://shagrat.icc.es/lizardtech/iserv/ows?
> (spec.layers[0].baseURL has an invalid value:
> http://shagrat.icc.es/lizardtech/iserv/ows?)
> at
>
> org.mapfish.print.map.readers.HTTPMapReader.checkSecurity(HTTPMapReader.java:64)
> etc..
>
> My first idea is that ocurs because of the proxy.cgi, but i'm not so sure.
> well, I hope someone can help me.
>
> regards
>
> Joan
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/PrintMap-with-Geoext-GeoServer-tp6904007p6907453.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2d-oct
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users