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
save the file and restart Tomcat
Leave a Reply