- 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.
- 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
- Save the changes.
- Restart the Apache2 service.
- 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.
- Load the javasamples.mgp package the same way you loaded the Sample Data package. (See Instructions for Loading the Sample Data on the Server
- 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.
- For the Basic Layout Viewer (Internet Explorer, Mozilla Firefox, Google Chrome, or Apple Safari), use the URL: http://servername:port/mapserver2016/javaviewersample /ajaxviewersample.jsp
- For the Basic Layout Viewer (Internet Explorer, Mozilla Firefox, Google Chrome, or Apple Safari), use this URL to display a tiled map: http://servername:port/mapserver2016/javaviewersample /ajaxtiledviewersample.jsp
Note:
servername is the name or IP Address of the computer on which the Web Server Extensions and sample applications are installed.