Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


Hi guys. I have a problem with WFS request, mine is follow:

 var wfs = new OpenLayers.Layer.Vector("WFS",{                     
 strategies: [new OpenLayers.Strategy.Fixed()],
 projection: new OpenLayers.Projection("EPSG:4326"),
 protocol: new OpenLayers.Protocol.WFS({                           
 version: "1.1.0",                                
 url : "http://localhost:8080/geoserver/wfs",      //
 featureNS : "", // field Namespace URI in Edit Workspace
 geometryName: "geom",                    // property of Geometry type in Edit Layer
 featureType: "InfoGeometric",            // filed Name in Edit LayerLayer Name   
 featurePrefix: 'cite'                    // field name in Edit Workspace

In geoserver i can see geometric features in preview. If i go on http:// localhost:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=cite:InfoGeometric and http:// localhost:8080/geoserver/wfs/GetFeature?version=1.1.0&typename=cite:InfoGeometric i see columns's table and data's table.

After request on my map there is "WFS" layer but not features. I think that the request is submitted correctly (from my html page, through the proxy to localhost:8080/geoserver/wfs, cod. 200 OK), but the response is not direct to my map infact if i see it in firebug i see the proxy.cgi file while i aspect my features!!!!! Can anybody give me an advise?

enter image description here

enter image description here

enter image description here


share|improve this question
The very first step would be using a tool like Firebug to see the WFS requests your application is creating and check if it is receiving features from the WFS server as response. – dariapra Oct 28 '12 at 16:06
two questions for you:1) Where is your html page currently? It has to be in a webserver to work. In addition, it needs a proxy to be working, if it is not in the same webserver as Geoserver. 2) Do you have any other layer in your map? Is that being displayed? – Devdatta Tengshe Oct 28 '12 at 16:21
I am not sure how you have both Geoserver & another webserver running on the same port. It might be that wfs services might not be visible. what happens when you try to open the following link: localhost:8080/geoserver/… – Devdatta Tengshe Oct 29 '12 at 3:24
What web server are you using? Do you know that the proxy cgi script is actually being executed? The fact that your response contains the cgi script would suggest that it is not being executed! – CHenderson Nov 6 '12 at 19:32
CHenderson, thanks for your reply. I read that in tomcat 6 must uncomment tag <servlet> and <servlet-mapping> in web.xml and in context.xml add the attribute provileged = true to tag Content (<Context privileged="true">). Again in response have proxy.cgi file. My application url is localhost:8081/ProofConsSpazial/index.html, if i go on localhost:8081/ProofConsSpazial/proxy.cgi i see my proxy.cgi file while i aspect It is clear that i made a mistake, problem is where and why. – Riccardo Nov 7 '12 at 19:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.