English

Bug: WFS Connector returns HTTP 500 error when enabling WFS services using Tomcat 5.0.28

Description

When trying to enable WFS for a feature service, the WFS Connector Administrator reports the following error:

"HTTP Status 500, the server encountered an internal error () that prevented it from fulfilling this request.
javax.servlet.ServletException: Servlet execution threw an exception"

The Tomcat log files at <Tomcat_Installation_Dir>/logs/ has the following details:

Code:
javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
com.esri.wfs.util.XMLUtil.transform(XMLUtil.java)
com.esri.wfs.CapabilitiesReply.createCapabilitiesOnDisk(CapabilitiesReply.java)
com.esri.wfs.AdminCommand.updateCapabilitiesOnDisk(AdminCommand.java)
com.esri.wfs.Esrimap.doGet(Esrimap.java)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Cause

When enabling WFS for a feature service, the WFS connector requires the Java XSLT processor. The error occurs because this processor is not included with Tomcat 5, specifically Tomcat 5.0.28 and some newer versions.

Workaround

Use the following procedure to add the Java XSLT processor files to the Tomcat installation.

  1. Stop the ArcIMS services in the following order:
    a. ArcIMS Tasker
    b. ArcIMS Monitor
    c. ArcIMS Application Server
  2. Stop the Tomcat service.
  3. Download the Apache Xalan-Java XSLT processor xalan-j_2_7_0-bin.zip
    from Apache from one of the following links:
    http://xml.apache.org/xalan-j/downloads.html
    http://ftp.wayne.edu/apache/xml/xalan-j/xalan-j_2_7_0-bin.zip
  4. Extract the downloaded file to a temporary location.
  5. Copy the following extracted files from the folder /xalan-j_2_7_0 (in the temporary location) into <Tomcat_Installation_Dir>/common/lib/.
    · serializer.jar
    · xalan.jar
    · xml-apis.jar
    · xercesImpl.jar
  6. Copy the extracted files
    xml-apis.jar and
    xercesImpl.jar from the folder /xalan-j_2_7_0 (in the temporary location) into <Tomcat_Installation_Dir>/common/endorsed/.
  7. Restart the Tomcat service.
  8. Restart The ArcIMS services in the following order:
    a. ArcIMS Application Server
    b. ArcIMS Monitor
    c. ArcIMS Tasker
  9. Proceed with enabling WFS for an available feature service in the WFS Connector Administrator.