Q: How to configure SuperMap iServer to make it publish correctly in Java web container such as Tomcat, while the container is started as a Windows service?

A: When Supermap iServer is started as a Windows service, you need to configure the Java properties  Diserver.home and -Diserver.output, and -Diserver.home to specify the startup directory of Supermap iServer. Also you need configure -Diserver.output to specify the output location of the cache tiles, which is relative to iserver.home. For example, if you deploy war of SuperMap iServer to Tomcat, and tomcat is running as Windows service, you need to add these two Java VM parameters. To ensure the original configuration file not change, you can set -Diserver.home to the bin directory of Tomcat, and set Diserver.output to webapps\output. E.g. (1) Modify the Java system properties, that is, start \Tomcat 6.0\bin\tomcat6w.exe, go into the Apache Tomcat Properties > Java >Java Options, and add the above two paths, such as "- Diserver.home=D:\Program Files\Apache Software Foundation\Tomcat 6.0\bin" and "-Diserver.output=D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\iserver\output", finally restart Tomcat service. This allows the SuperMap iServer service be published correctly when Tomcat is started as a Windows service.

08 Jul,2019
Tags:iserver

More iServer FAQ