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 setenv.sh 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:

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Powered by WordPress.com.

Up ↑

%d bloggers like this: