Setting up Sample Applications (Java) with Apache and Tomcat

  1. Copy the folders javasamples and javaviewersample from the Samples folder on the installation DVD to C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2016\www.
  2. Open the file C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2016\Apache2\conf\httpd.conf. Add the following lines at the end:
     JkMount /mapserver2016/javaviewersample/* worker1
     JkMount /mapserver2016/javasamples/* worker1
    
  3. Save the changes.
  4. Restart the Apache2 service.
  5. Copy json.jar from the Samples folder on the installation DVD to C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2016\www\WEB-INF\lib.
  6. Load the javasamples.mgp package the same way you loaded the Sample Data package. (See Instructions for Loading the Sample Data on the Server
  7. Open the URL http://servername:port/mapserver2016/javasamples/main.jsp.

This opens the developer’s guide samples and provides links to the Viewer Samples. You can also open the Viewer Samples directly.

Note:

servername is the name or IP Address of the computer on which the Web Server Extensions and sample applications are installed.