Simone asked me to bring this up on the list instead of direct.

Using the latest source from github, (
https://github.com/geosolutions-it/mapfish-print)
I built a war and put it on our server.

Using this url:
http://204.62.18.181:8090/print-servlet-2.0-SNAPSHOT_GS/

you get the test screen.

Paste this text:

            {
        layout: 'Letter portrait',
        title: 'A simple example',
        srs: 'EPSG:900913',
        units: 'meters',
        layers: [
            {
                type: 'WMS',
                format: 'image/png',
                layers: ['ogi:oklakes','ogi:quad100','ogi:okzip'],
                baseURL: 'http://204.62.18.181/geoserver/wms',
                customParams: {TRANSPARENT:true}
            }
        ],
        pages: [
            {
                center: [-10964969.841611111, 4230671.17964707],
                scale: 1000000,
                dpi: 190,
                mapTitle: "OKMaps",
                comment: "",
                data: [
                    {id:1, name: 'blah', icon: 'icon_pan'},
                    {id:2, name: 'blip', icon: 'icon_zoomin'}
                ]
            }
        ]
    }
Click "Get Print" and you get an error:
org.mapfish.print.JsonMissingException: attribute [spec.forwardHeaders]
missing

I also tried this with the main trunk of mapfish-print 2.0, and it works
fine.

Thanks!
Roger
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to