John, the first link you provided works for me (possibly because you applied the workaround you described).
I think that there is likely a problem with your namespace configuration. Do you have namespace.xml and workspace.xml files for the gsmlp workspace? Is it in a directory called "gsmlp"? Do you have a featuretype.xml file for this type that specifies the namespace id given in namespace.xml? Please compare with the app-schema tutorial. The error is similar to that seen when a secondary namespace is required, but in this case gsmlp is not a secondary namespace. Kind regards, Ben. On 28/08/13 14:33, John Callahan wrote: > I have a WFS service I am running using the app-schema extension. (This > is using the GeoSciML-Portrayal schema for the GeologicUnits polygons.) > My workspace name is "gsmlp" and the source data is in PostGIS. > (Attached is my mapping file.) > > The error I get when running is WFS GetFeature request is: > > The prefix "null" for element "null:GeologicUnitView" is not bound. > > The request is > > http://maps.dgs.udel.edu/geoserver/gsmlp/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=gsmlp:GeologicUnitView&maxFeatures=1 > > > It also fails using WFS 1.0.0 (java.lang.ClassCastException: > org.geotools.feature.type.ComplexFeatureTypeImpl cannot be cast to > org.opengis.feature.simple.SimpleFeatureType) but actually returns a > response with WFS 2.0.0. > > > A strange behavior is that if I make the gsmlp worksapce the default > workspace, then this app-schema service works great. As well, if I > enable "Strict CITE Compliance" for the WFS:gsmlp service, then the > service works fine as well. However, in these cases when the gsmlp WFS > services (app schema based) work (i.e., they return valid WFS GetFeature > responses), then none of the other WFS services I have on the machine > work properly. Here is an example of a WFS service on the server. > > http://maps.dgs.udel.edu/geoserver/DGS_Surficial_and_Contact_Geology/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=DGS_Surficial_and_Contact_Geology:US-DE_DGS_100k_Surficial_Geology&maxFeatures=1 > > The fact that when the app-schema gsmlp WFS service works, none of the > other WFS services work, and vice-versa, makes me think the mapping file > is correct but geoserver is not utilizing > xmlns:gsmlp="http://xmlns.geosciml.org/geosciml-portrayal/2.0" in the > feature response. > > > Any suggestions on what I can try? Thanks. > > - John > > > John Callahan > Research Scientist > Delaware Geological Survey > University of Delaware > http://www.dgs.udel.edu > [email protected] <mailto:[email protected]> > > > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Ben Caradoc-Davies <[email protected]> Software Engineer CSIRO Earth Science and Resource Engineering Australian Resources Research Centre ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
