[Geoserver-users] Error with using Printing Module on remote server

I'm currently trying out the printing module in geoserver and have managed to
get the it working nicely on my localhost.

However, when I try the same thing with a dev server we have on our network
the printing service does not work.

Below is the error message I get and a copy of my config.yaml

Thanks, Matt

Config.yaml

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-with-using-Printing-Module-on-remote-server-tp5144354.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

It has been a while since I have used the geoserver print module so my answer could be wrong.
I am guessing that you are using GeoExt on the application side. If that is the case geoext requires override-ext-ajax to be installed.
You can do that from the builder found under the geoext /docs folder.

Ralph

-----Original Message-----
From: Yakus [mailto:matt.travis1@anonymised.com]
Sent: Friday, June 06, 2014 4:25 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Error with using Printing Module on remote server

I'm currently trying out the printing module in geoserver and have managed to
get the it working nicely on my localhost.

However, when I try the same thing with a dev server we have on our network
the printing service does not work.

Below is the error message I get and a copy of my config.yaml

Thanks, Matt

Config.yaml

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-with-using-Printing-Module-on-remote-server-tp5144354.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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/NeoTech
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Ralph

Thanks for your reply. I'm actually using Leaflet with this plugin
<https://github.com/aratcliffe/Leaflet.print&gt;

The same config.yaml works fine on my localhost so not sure where I'm going
wrong?

Think it possibly must be the in the hosts section???

Thanks

Matt

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-with-using-Printing-Module-on-remote-server-tp5144354p5144433.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Yakus,
the error seems more related to the json request your application sends to mapfish rather then the config.yaml.

Do you have any chance to share with us the json sent from your application to the printing service? You should be able to see it using browser tools such as Chrome Developer Tools or Firefox Firebug.

Mauro

···

2014-06-06 14:43 GMT+02:00 Yakus <matt.travis1@anonymised.com>:

Hi Ralph

Thanks for your reply. I’m actually using Leaflet with this plugin
<https://github.com/aratcliffe/Leaflet.print>

The same config.yaml works fine on my localhost so not sure where I’m going
wrong?

Think it possibly must be the in the hosts section???

Thanks

Matt


View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-with-using-Printing-Module-on-remote-server-tp5144354p5144433.html

Sent from the GeoServer - User mailing list archive at Nabble.com.


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/NeoTech


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Mauro

Thanks for the tip. There was a problem with my config so I used the one on
my localhost that i know works.

I now get this error:

This is the output from http://10.0.1.218:8080/geoserver/pdf/info.json:

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-with-using-Printing-Module-on-remote-server-tp5144354p5144561.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Yakus,
the info service seems to be ok.

Probably the problem arises when you call http://10.0.1.218:8080/geoserver/pdf/create.json.

Can you share the body of that request?

Mauro

···

2014-06-07 12:25 GMT+02:00 Yakus <matt.travis1@anonymised.com>:

Hi Mauro

Thanks for the tip. There was a problem with my config so I used the one on
my localhost that i know works.

I now get this error:

This is the output from http://10.0.1.218:8080/geoserver/pdf/info.json:


View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-with-using-Printing-Module-on-remote-server-tp5144354p5144561.html

Sent from the GeoServer - User mailing list archive at Nabble.com.


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/NeoTech


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Mauro

On request i get this response in my browser.

...chrome dev tools showing a 404 response too.

Matt

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-with-using-Printing-Module-on-remote-server-tp5144354p5144637.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

I just noticed some odd behaviour on the Data security screen.

  1. Open the screen
  2. Double click ROLE_AUTHENTICATED to move it to the right hand list box
  3. Save
  4. Go back in
  5. Double click ROLE_AUTHENTICATED (ROLE_AUTHENTICATED moves back to left had list box as expected)
  6. Click the check box “Grant access to any role” (ROLE_AUTHENTICATED moves back to right hand list box)
  7. Save
  8. Go back in and ROLE_AUTHENTICATED is in the left hand list box.

Russ