Adam, it looks like your namespaces are incorrect. The ps namespace should be: http://inspire.ec.europa.eu/schemas/ps/4.0
But below it looks like you have requested type with namespace: http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSite Your namespace.xml also has a different namespace URI: http://inspire.ec.europa.eu/schemas/ps Please check that all your namespaces are correct. You may also need to create secondary namespaces to ensure that these are defined for the GeoTools encoder: http://docs.geoserver.org/latest/en/user/data/app-schema/secondary-namespaces.html There are also several problems with your mapping file: you use a namespace prefix "base" that is not defined, and one targetAttribute is "ps:" (no prefix, missing local name). It would also be useful to examine the geoserver logs and look for exception stack traces; sometimes a strange error later may be caused by earlier exception that has left something in an incomplete state. First fix your namespaces. Kind regards, Ben. On 07/04/16 19:32, Adam Mydla wrote: > Hi, > > I'm working on my diploma thesis with GeoServer and complement application > schema. > > When I created data store, and create a new layer program writes an error > in the mapping file: > "Could not list layers for this store, an error occurred retrieving them: > java.util.NoSuchElementException: No top-level element found in Schemes: {} > http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSite ProtectedSite " > > I don´t know how to resolve because there isn´t another source > ProtectedSites.xsd scheme download source. > > How I can solve this problem ????? > > here is my mapping file for download: > https://drive.google.com/open?id=0B1bulwJXoip1VHdxSHFyenNXLXM > > Adam > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Ben Caradoc-Davies <[email protected]> Director Transient Software Limited <http://transient.nz/> New Zealand ------------------------------------------------------------------------------ _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
