[Geoserver-devel] Problem loading demo SLD file

I get the following error when I try to load the Simple Roads SLD file into Geoserver. I'm using Geoserver 1.3 rc5

From this page:
http://localhost:8080/geoserver/config/data/styleEditorSubmit.do

I get:

Your .SLD file does not conform to the SLD Schema
More help is available here

1: <?xml version="1.0" encoding="UTF-8"?>
2: <StyledLayerDescriptor version="1.0.0"
3: xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
4: xmlns="http://www.opengis.net/sld&quot;
5: xmlns:ogc="http://www.opengis.net/ogc&quot;
6: xmlns:xlink="http://www.w3.org/1999/xlink&quot;
7: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
---------------------------------------------------------^
        cvc-elt.1: Cannot find the declaration of element 'StyledLayerDescriptor'.
---------------------------------------------^
        TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace of 'http://www.opengis.net/sld’.
---------------------------------------------^
        TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace of 'http://www.opengis.net/sld’.
---------------------------------------------^
        TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace of 'http://www.opengis.net/sld’.
8: <NamedLayer><Name>Simple Roads</Name>
9: <UserStyle>

Hi Cameron,

This message is saying that it can't find the StyledLayerDescriptor.xsd file and therefore cannot validate your SLD. The file should be located in your deployed [geoserver]\schemas\sld directory.

Are you using Tomcat, or Jetty?

Brent Owens
TOPP

Cameron Shorter wrote:

I get the following error when I try to load the Simple Roads SLD file into Geoserver. I'm using Geoserver 1.3 rc5

From this page:
http://localhost:8080/geoserver/config/data/styleEditorSubmit.do

I get:

Your .SLD file does not conform to the SLD Schema
More help is available here

1: <?xml version="1.0" encoding="UTF-8"?>
2: <StyledLayerDescriptor version="1.0.0"
3: xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
4: xmlns="http://www.opengis.net/sld&quot;
5: xmlns:ogc="http://www.opengis.net/ogc&quot;
6: xmlns:xlink="http://www.w3.org/1999/xlink&quot;
7: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
---------------------------------------------------------^
       cvc-elt.1: Cannot find the declaration of element 'StyledLayerDescriptor'.
---------------------------------------------^
       TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace of 'http://www.opengis.net/sld’.
---------------------------------------------^
       TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace of 'http://www.opengis.net/sld’.
---------------------------------------------^
       TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace of 'http://www.opengis.net/sld’.
8: <NamedLayer><Name>Simple Roads</Name>
9: <UserStyle>

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel