What port are you running the open layers application on?

If the port is different to 7013 then it will be a browser cross domain
issue. i.e you can't make ajax requests to a server on a different
domain/host

You'll have to set up a proxy in apache or run the application out of
the tomcat/jetty running on 7013

Louis

-----Original Message-----
From: badger [mailto:matjb...@hotmail.co.uk] 
Sent: 10 November 2011 11:42
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Using a WFS layer

I have a problem with WFS layers, I am trying to call one up from
geoserver, here is the relavant code:

 

var Test = new OpenLayers.Layer.Vector(
                    "WFS",
                {
                    protocol: new OpenLayers.Protocol.WFS({
                              url:
"http://localhost:7013/geoserver/wfs";,
                              featureType: 'topp:TESTVECTOR',
                              })
                });

the result is that the layer does not display, and there are no helpful
error messages in firebug.

When I change the directory nothing changes, even when I spell the
folder names wrong e.g.

url: "http://localhost:7013/goserver/wfs";,

so it seems like i am looking in the wrong place for the wfs, how do I
find the right place? is there a link between a folders location and its
location on geoserver?

I have also read in the openlayers guidebook that WFS is depreciated,
are my problems because it is about to be replaced? is there an
alternative option that i can use for viewing and editing vectors on
geoserver?

Thanks for reading, 

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Using-a-WFS-layer-tp6981364p69813
64.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to