Geoserver, Tomcat 7 and JSONP

I came across an issue recently where we were trying to get JSONP enabled for a Geoserver install.  Attempting to turn it on in web.xml was not working and as it turns out is not supported by Geoserver.

To enable JSONP in Tomcat 7:

go into /tomcat/bin

if there is no file create one

insertexport ENABLE_JSONP=true and outFormat=text/javascript” without quotes

save the file and restart Tomcat


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Website Powered by

Up ↑

%d bloggers like this: