Hristo, app-schema does not support the GeoServer web interface. Do not use the web interface to view or modify app-schema layers. The demo layer request fails because it defaults to WFS 1.0.0 / GML 2, which is also not supported by app-schema, which only supports WFS 1.1.0 and (some of) WFS 2.0.0. The WFS 1.0.0 implementation does not support complex features.
Did you try accessing the two layers using the links as the end of the tutorial? http://docs.geoserver.org/latest/en/user/data/app-schema/tutorial.html Namely: http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.1.0&typeName=gsml:GeologicUnit http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.1.0&typeName=gsml:MappedFeature If you use the demo requests page, you *must* select GML 3.1 output, because these are GML 3.1 layers. (Yes, the tutorial should be updated to include this information.) Kind regards, Ben. On 09/04/13 05:14, Hristo Dechev wrote: > Hi, > I’m trying to repeat the application schema tutorial example and made the > following simple steps: > - Installed geoserver 2.3.0 on Windows 7 (64), JRE 6 (64) > - Copied jar files into WEB-INF/lib > - Copied geoserver-2.3.0-app-schema-plugin/tutorial as data_dir. > Then … logging with admin or root user… > In Layer preview I can see only gsml:Mappedfeature. When I tried to get GML > from layer preview page the result is: > > <ServiceExceptionReport xmlns="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > version="1.2.0"xsi:schemaLocation="http://www.opengis.net/ogc > http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd"> > <ServiceException> > java.lang.ClassCastException: > org.geotools.feature.type.ComplexFeatureTypeImpl cannot be cast to > org.opengis.feature.simple.SimpleFeatureType > org.geotools.feature.type.ComplexFeatureTypeImpl cannot be cast to > org.opengis.feature.simple.SimpleFeatureType > </ServiceException> > </ServiceExceptionReport> > > Also it’s impossible to republish some other complex feature, for example if > I tried to publish again tut_RoadSegment, the error is: > > java.lang.RuntimeException: Error occurred while building the resources for > the configuration page > at > org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:3 > 02) > at > org.geoserver.web.data.layer.NewLayerPage$6.onClick(NewLayerPage.java:241) > at org.geoserver.web.wicket.SimpleAjaxLilp > nk$1.onClick(SimpleAjaxLink.java:45) > at > org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:68) > …………………………. > > Can anybody help me? > Regards > Hristo Dechev > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis& visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > 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 ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
