Is This Content Helpful?
We're glad to know this article was helpful.
When trying to create image, feature, or metadata services using the ArcIMS Service Administrator (esriadmin) on Windows XP Service Pack 2 (SP2), an error message is returned and the services are not created. The following error is returned:
"XML declaration may only appear at the beginning of the document"
This problem can occur when:
• ArcIMS 9.0, without Service Pack 2, is installed on Windows XP SP2.
• ArcIMS 9.0, with Service Pack 2, is installed on Windows XP SP2 and the servlet engine is Tomcat.
The arcims_jconnect.jar file that is used by Service Administrator is not the most current version.
This problem is resolved with an updated version of arcims_jconnect.jar that is installed with ArcIMS 9.0 Service Pack 2. Complete the following steps to verify the file is up to date:
If ArcIMS 9.0 Service Pack 2 has not been installed, install it. A link to ArcIMS 9.0 Service Pack 2 is provided by way of the Related Information section below.
If the problem still occurs and ArcIMS 9.0 Service Pack 2 has been installed on a machine that is using Tomcat as a servlet engine, perform the following:
1. Stop the Tomcat service.
2. Navigate to <Tomcat Install Directory>\webapps and delete the \esriadmin folder.
3. Start the Tomcat service.
The \esriadmin folder is re-created with the most current files.