XML parser settings

About this task

To ensure that the correct Java™ classes are used for the XML processing performed by the Visual Modeler, you must ensure that the Java Virtual Machine settings specify the correct classes. In general, you can either set the classes as additional parameters in the command line that starts the servlet container or you can specify them as parameters for the Web application.

To set the parameters for the Web application, add the following to the web.xml file located in the debs_home/Sterling/WEB‑INF/ directory:


<context-param>
   <param-name>Comergent.xml.SAXParserFactory</param-name>
   <param-value>
      org.apache.xerces.jaxp.SAXParserFactoryImpl
   </param-value>
   <description>SAX Parser factory configuration</description>
</context-param>
<context-param>
   <param-name>Comergent.xml.DocumentBuilderFactory</param-name>
   <param-value>
      org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
   </param-value>
   <description>DOM Parser factory configuration</description>
</context-param>
Note: These settings are overridden by values set at the command line.