<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Pierre, <div><br></div><div>Two things -</div><div><br></div><div>1. this should be on the geoserver users forum list, rather than the dev user list.</div><div>2. I suspect you are running against CORS restrictions - i.e. you are trying to pull in data to localhost:xx from localhost:8080 where XX isn’t 8080. Images are allowed through via CORS, however ‘scripts’ (xml / gml - what WFS is) isn’t. </div><div>Have a look at that and post any other problems on the users list.</div><div><br></div><div>Cheers</div><div><br></div><div>Toby</div><div><br></div><div><br></div><div><br></div><div><div><div>On 19 Mar 2014, at 14:28, Pierre Marcel Anselme Lacroix <<a href="mailto:Pierre.Lacroix@unige.ch">Pierre.Lacroix@unige.ch</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div ocsi="0" fpstyle="1" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="direction: ltr; font-family: Tahoma; font-size: 10pt;">Hi,<br>I have installed Geoserver on my local computer. I cannot display a WFS layer while the WMS is displaying. What am I doing wrong?<br><br>The following WMS is shown on the map:<br>WMS_Layer = new OpenLayers.Layer.WMS( "WMS Layer",<br>"<a href="http://localhost:8080/geoserver/wms">http://localhost:8080/geoserver/wms</a>",<br>{layers: 'topp:tasmania_roads', transparent: 'true'}, {opacity: .2});<br><br>The following WFS is not shown whereas it is the same layer as the WMS:<br>WFS_Layer = new OpenLayers.Layer.Vector("WFS Layer", {<br>    strategies: [new OpenLayers.Strategy.BBOX()],<br>    protocol: new OpenLayers.Protocol.WFS({<br>        url:"<a href="http://localhost:8080/geoserver/wfs">http://localhost:8080/geoserver/wfs</a>",<br>        featureType: "tasmania_roads",<br>        featureNS: "<a href="http://www.openplans.org/topp">http://www.openplans.org/topp</a>"<br>        })             <br>    });<br><br>Thanks for your reply.<br><br><div><div style="font-family: Tahoma; font-size: 13px;"><div style="font-family: Tahoma; font-size: 13px;"><div style="font-family: Tahoma; font-size: 13px;"><div style="font-family: Tahoma; font-size: 13px;"><div style="font-family: Tahoma; font-size: 13px;"><div style="font-family: Tahoma; font-size: 13px;"><div style="font-family: Tahoma; font-size: 13px;"><div style="font-family: Tahoma; font-size: 13px;"><span>---------<br><a name="_MailAutoSig" target="1"><span></span></a>With best regards - Avec mes meilleures salutations,<br>Pierre Lacroix, PhD.<br><span style="font-style: italic;">Scientific Collaborator</span><span class="Apple-converted-space"> </span>- University of Geneva - Pole in Environmental Sciences<br><span style="font-style: italic;">GIS Analyst<span class="Apple-converted-space"> </span></span>- United Nations Environment Programme - UNEP/DEWA/GRID-Geneva<br><a href="http://www.unige.ch/envirospace" target="_blank">http://www.unige.ch/envirospace</a></span></div></div></div></div></div></div></div></div></div></div>_______________________________________________<br>Dev mailing list<br><a href="mailto:Dev@lists.osgeo.org">Dev@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-dev">http://lists.osgeo.org/mailman/listinfo/openlayers-dev</a></div></blockquote></div><br></div></body></html>