English

Error: com.esri.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.

Error Message

When logging into the ArcIMS Service Administrator from a Web browser, using the URL syntax http://webserver:port/esriadmin the following error may occur.

"com.esri.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed."

Error message received in the browser:

com.esri.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
at com.esri.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
at com.esri.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
at com.esri.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:753)
at com.esri.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at com.esri.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at com.esri.aims.mtier.model.admin.Site.getSiteProperties(Site.java:163)
at org.apache.jsp.services$jsp._jspService(services$jsp.java:372)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)

Cause

The configuration of the Service Administrator is incorrect.

Solution or Workaround

The Service Administrator communicates with the ArcIMS Application Server and retrieves the site preferences information from the Application Server. The Application Server retrieves its configuration settings for the Service Administrator through the sitePreference.properties file.

  1. Open the AppServer.properties file located under the ArcIMS Application Server directory to make sure the path to the sitePreferences.properties file is accurate. For example:

    On UNIX:
    Code:

    preferenceFile=/<ArcIMS Installation Directory>/ArcIMS/Middleware/Application_Server/sitePreferences.properties

    On Windows:
    Code:
    preferenceFile=sitePreferences.properties

  2. Verify that all entries in the sitePreferences.properties file are accurate. The file is located in the ArcIMS Application Server directory, which is used to store site preferences for the ArcIMS Service Administrator. A sample sitePreferences.properties can be viewed here:

    On windows:

    #OutputDir - Path to the image output directory
    #OutputURL - URL for image output
    #OutputCleanup - Scavenger cleanup interval in minutes
    #ImageMemory - Amount of memory to reserve for Spatial Server images
    #MaxImageMemory - Maximum Image memory Limit allowed in megabytes
    ##
    OutputDir=C\:/ArcIMS/Output
    OutputURL=http\://www.yourserver.com/output
    OutputCleanup=10
    ImageMemory=4
    MaxImageMemory=250

    On UNIX:

    #OutputDir - Path to the image output directory
    #OutputURL - URL for image output
    #OutputCleanup - Scavenger cleanup interval in minutes
    #ImageMemory - Amount of memory to reserve for Spatial Server images
    #MaxImageMemory - Maximum Image memory Limit allowed in megabytes
    ##
    OutputDir=/something1/linux401/ArcGIS/output
    OutputURL=http\://www.yourserver.com/output
    OutputCleanup=10
    ImageMemory=4
    MaxImageMemory=250

  3. Restart the Web Server, Servlet Engine and ArcIMS Services for the changes to take effect.

    If none of the above steps succeeded, retrace the steps outlined in Installation Guide for the configuration of Service Administrator to your Web Server.