1

I have created a web based GIS using Geoserver-Postgis-Openlayers...

Every thing was working fine till I changed the server path from 'Testing to LIVE.'

WMS POP up Function has stopped working in LIVE Server Environment & showing the following error message..

"Message: Access is denied.

Line: 177 ; Char: 9 ; Code: 0 ; URI: ....../geoserver/OpenLayers-2.8/lib/OpenLayers/Request/XMLHttpRequest.js "

WMS Pop Up code is as follows (Working perfectly at my Test Server)

info = new OpenLayers.Control.WMSGetFeatureInfo({
            url: '..../geoserver/LT_WEB/wms', 
            title: 'Identify features by clicking',
            queryVisible: true,
            eventListeners: {
                getfeatureinfo: function(event) {
                    map.addPopup(new OpenLayers.Popup.FramedCloud(
                        "", 
                        map.getLonLatFromPixel(event.xy),
                        null,
                        event.text,
                        null,
                        true
                    ));
                }
            }
        });
        map.addControl(info);
        info.activate();

        map.addControl(new OpenLayers.Control.LayerSwitcher());
        map.zoomToMaxExtent();

SERVER - Microsoft Windows 2003 R2. Web Browser - Internet Explorer 8.0.

In both Servers (Testing & LIVE) GeoServer, PostGIS and OpenLayers 2.8 installed and all paths verified.

Awaiting for your valued response.

closed as too localized by Devdatta Tengshe, Ian Turton May 31 '13 at 13:18

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • is your Geoserver, and the web server containing your HTML/JS files on the same server and same port number? – Devdatta Tengshe May 30 '13 at 11:27
  • Geoserver-Postgis is installed separately at both servers (Testing & Live)...I copied all my programm files(html / JS /php) from Test to LIVE Server & changed the necessary URL & URI... – Sandipan Saha May 30 '13 at 11:36
  • I think your web server is on a different port than your geoserver. Can you tell us what is the complete address of your geoserver (along with the port)? Also tell us what is the complete address of your webserver (as in what you are seeing in the browser's address bar?) – Devdatta Tengshe May 30 '13 at 11:41
  • 'TEST Server' Environment : Geoserver Port-8282 Webserver port-8181. 'LIVE Server' Environment : Geoserver Port-8585; Webserver Port-8181. – Sandipan Saha May 30 '13 at 11:48
  • TEST Server Environment - 10.50.110.11:8181/geoserver***.php Live Server Environment - 10.40.48.22:8181/geoserver****.php – Sandipan Saha May 30 '13 at 11:50
0

Just I changed the 'Ip address' of 'Live Server' with its server name.... in WMS popup function & also in all related wms url paths in my map program file..

The corrected url now become - "http://[servername]:8181/geoserver/*.php"

It worked fine...

Thanks to all for your prompt effort...

Not the answer you're looking for? Browse other questions tagged or ask your own question.