I think the problem is that you are using Oracle APEX ;)<br><br>On Friday, January 6, 2012, Neil T <<a href="mailto:tallentn@gmail.com">tallentn@gmail.com</a>> wrote:<br>> Hello, my first post on an online forum, so I appoligize if I fail at the<br>
> info!<br>><br>> My setup:<br>><br>> Tomcat 7.0.22, localhost:8082<br>> GeoServer 2.1.3, hosted via Tomcat (also :8082)<br>> Oracle XE/Apex 4.1, running via embedded XDB gateway on :8080<br>> Openlayers 2.10 (tried 2.11, not sure if that was the issue, currently back<br>
> on 2.10)<br>> Python 2.7 (for my proxy script)<br>> Using Firefox/Firebug for review<br>><br>> I'm attempting to offer a layer of point geometries from my XE DB as a<br>> Vector layer on my map. The layer displays fine in Geoserver<br>
> (workspace:BETA_ORCL, layer:CC_COUNTRIES); I can preview in all formats. I<br>> had first attempted the GeoServer Proxy (proxy-2.1-SNAPSHOP), but was<br>> unsuccessful and deleted the .jar from my web-inf/lib. Next, I tried the<br>
> proxy.cgi provided by Openlayers - it was origionally unsuccessful as well<br>> (the section that rendered the 'qs' "QUERY_STRING" as an array set was<br>> truncating my url request at the first &...I replaced with an lstrip('url=')<br>
> to clean my url instead), and I can successfully pass a getFeature request<br>> using the proxy by manually inserting the url (proxy and getFeatures call)<br>> into a browser; it returns what seems to be a valid xml of my feature set.<br>
><br>> All this leads me to believe my Geoserver can offer this layer as a wfs<br>> layer (wfs is enabled, getCapabilities checks out, etc.) through the proxy.<br>> Here's my layer call from javascript:<br>
><br>> var countryLayer = new OpenLayers.Layer.Vector("WFS", {<br>> strategies: [new OpenLayers.Strategy.Fixed()],<br>> projection: new OpenLayers.Projection("EPSG:4326"),<br>> protocol: new OpenLayers.Protocol.WFS({<br>
> url: "<a href="http://localhost:8082/geoserver/wfs">http://localhost:8082/geoserver/wfs</a>",<br>> featurePrefix:"BETA_ORCL",<br>> featureType: "CC_COUNTRIES",<br>> geometryName: "CENT_GEOM",<br>
> featureNS: "<a href="http://betaora.org">http://betaora.org</a>",<br>> schema:<br>> "<a href="http://localhost:8082/geoserver/wfs?service=wfs&version=1.1.0&request=DescribeFeatureType&typename=BETA_ORCL:CC_COUNTRIES">http://localhost:8082/geoserver/wfs?service=wfs&version=1.1.0&request=DescribeFeatureType&typename=BETA_ORCL:CC_COUNTRIES</a>",<br>
> srsName: "EPSG:4326",<br>> version: "1.1.0"<br>> })<br>> });<br>><br>> When the page renders, the only activity I see in the GeoServer logs is the<br>> request for WMS tiles (my base map, which displays fine). Nothing at all<br>
> for WFS layer, no errors...nothing. In FireBug, I get two warnings on the<br>> console (regarding the xml.js and v1.js for openlayers) about null objects,<br>> but no errors. On the Net panel, the activity reads:<br>
><br>> URL: OPTIONS cust.cgi?url=.... (on mouseover, changes to full<br>> <a href="http://localhost:8082">http://localhost:8082</a>)<br>> STATUS: 200 OK<br>> DOMAIN: localhost:8082<br>> SIZE: 0<br>> Remote IP: localhost:8082<br>
><br>> The response is completely empty.<br>><br>> I'm concerned because the net activity in Firebug for WMS layers starts with<br>> POST/GET (vice OPTIONS); does this indicate the problem?<br>><br>> Also unsure of the paramater calls for Protocol.WFS - I've seen SOOO many<br>
> combos that all claim to work (using/not using featureNS, schema, etc.)...do<br>> I have it right?<br>><br>> Finally; my Vector layer does create. It is added to the layer selector,<br>> and is under the dom objects. However, there are no features; nothing<br>
> displayed, nothing in the feature array, and the final two <g> elements<br>> (vroot and troot) have no children. If I manually add a feature (using the<br>> markup controls), they are successfully added to the map and dom. Which<br>
> makes me think the layer IS working...just not getting data from Geoserver.<br>><br>> Any help is SERIOUSLY appreciated...I'm red-eyed from scouring forums, and<br>> would love to get on with my life. Thanks!<br>
><br>> Neil<br>><br>> --<br>> View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/OL-vector-wfs-trouble-with-GeoServer-tp7159749p7159749.html">http://osgeo-org.1803224.n2.nabble.com/OL-vector-wfs-trouble-with-GeoServer-tp7159749p7159749.html</a><br>
> Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>>