I'm getting an error when displaying Ordnance Survey MasterMap data through GeoServer as a WMS in QGIS.

The error is:

<?xml version="1.0" encoding="UTF-8"?>
<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://localhost:8080/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd">   
  java.lang.RuntimeException: org.xml.sax.SAXException: Entity resolution disallowed for SYSTEM org.xml.sax.SAXException: Entity resolution disallowed for SYSTEM Entity resolution disallowed for SYSTEM

Exception report:

<xsd:schema targetNamespace="http://www.opengis.net/ogc" elementFormDefault="qualified" version="1.3.0 2010-02-03">

      WMS is an OGC Standard.
      Copyright (c) 2004,2010 Open Geospatial Consortium, Inc. All Rights Reserved.
      To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ -->

    <xsd:element name="ServiceExceptionReport">
                <xsd:element name="ServiceException" type="ogc:ServiceExceptionType" minOccurs="0" maxOccurs="unbounded"/> 
            <xsd:attribute name="version" type="xsd:string" fixed="1.3.0"/>
    <xsd:complexType name="ServiceExceptionType">
            <xsd:extension base="xsd:string">
                <xsd:attribute name="code" type="xsd:string"/> 
                <xsd:attribute name="locator" type="xsd:string"/>

I'm very new at Geoserver and not sure about the error at all. When researching the error a lot of people get SAXParseException but can't find something similar to what I get.

I think it's something to do with the colour hex in the SLD file I'm using, sample below:

      <Name>Unclassified - 1:0 to 1:4,000</Name>
          <CssParameter name="fill">#F7F5F0</CssParameter>
  • the error seems to suggest the string SYSTEM is the problem, can you see if that occurs in your SLD file?
    – Ian Turton
    Nov 21, 2018 at 11:02
  • Just had a look and the word System doesn't appear in the SLD at all.
    – Dave C
    Nov 21, 2018 at 11:07
  • I should also say I have an SLD for a different layer from the same provider that works fine.
    – Dave C
    Nov 21, 2018 at 11:09
  • Looks like your SLD uses some entity expansion somewhere, can you please share the entire SLD instead of just a snippet? Nov 21, 2018 at 11:28
  • I can't share it all in the text above but you can find it here: github.com/OrdnanceSurvey/OSMM-Topography-Layer-stylesheets/…
    – Dave C
    Nov 21, 2018 at 11:31

1 Answer 1


I found the answer for anyone else using these SLD files.

There were too many arguments in the xml. Only one is required at the top and bottom of the complete SLD file.

  • It's not clear what the solution is, which arguments did you have too many of.
    – nmtoken
    Jan 28, 2020 at 10:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.