Web - IIS and Tomcat Integration
From fmepedia
(http://fmepedia.com/index.php/Category:FME_Server)
Verified on Windows 2003 Server R2 with IIS 6.0, JRE 6u5, Tomcat 5.5.26, isapi_redirect 1.2.26 and FME Server 2009 B5649_5904
| Table of contents |
Prerequisites
JDK/JRE installed
Tomcat installed
1. You may want to set the service Startup Type as Automatic since FME Server has to run on it.
2. Make a note for port number if it is changed from default 8080 to others. You will need this port number during the FME Server installation progress.
Tomcat connector / IIS Redirector
Quick link to connector isapi_redirector.dll (http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/)
Sample configuration files
Here is a zip file with samples
Steps to integrate IIS and Tomcat
Configuration at Tomcat side
- Navigate to <Tomcat Installed Dir>\bin folder.
- Create a subfolder named win32 within 'bin'
- Copy the isapi_redirect_(version).dll into <Tomcat Installed Dir>\bin\win32\
- Rename the above file to isapi_redirect.dll
- Unzip the download iis_tomcat_samples.zip to a temp folder.
- Copy the isapi_redirect.properties file from the temp folder into <Tomcat Installed Dir>\bin\win32\
- Open the isapi_redirect.properties file to ensure that paths are set correctly.
- Copy the uriworkermap.properties and workers.properties files from temp folder into <Tomcat Installed Dir>\conf\
At this point, it may be necessary to review permissions of added properties and dll files to ensure the IIS service user (usually Network Service) and internet guest user have read/execute permissions on those files.
Configuration at IIS side
- Open the Internet Information Services(IIS) manager.
- Browse to <server name> -> Web Sites
- Right click on Default Web Site, then select New -> Virtual Directory.
- Enter Jakarta for Alias name and select <Tomcat installed Dir>\bin\win32 as directory.
- For the permission page, select both Read and Execute check boxes.
- Click Finish and close the dialog.
- Right click on Default Web Site, and select properties.
- In the popup dialog, select the ISAPI Filters tab.
- Click Add.
- Enter Jakarta for Filter name, and <Tomcat Installed Dir>\bin\win32\isapi_redirect.dll as executable.
- Click Apply and close the dialog box.
- Right click on Web Service Extensions and select Add a new Web service extension
- Enter Jakarta for Extension Name, and add <Tomcat Installed Dir>\bin\win32\isapi_redirect.dll for required files field.
- Select the Set extension status to Allowed check box and click OK to close the dialog box
- Stop and restart the Default Web Site by right clicking on it and select Stop and Start.
- If everything is setup correctly, you should be able to access the Tomcat manager servlet at http://<Server_Name>/manager/status
- Now, you are ready to install FME Server.
Note i) You need to add the contexts for new FME Server application to uriworkermap.properties like this:
/fmeserver/*=wlb
/fmeserver=wlb
Note ii) for DDE and SpatialDirect simply replace fmeserver with DDE or SpatialDirect.
Note iii) IIS may not allow the download of .log files when using the SpatialDirect service. This can be overcome by adding the .MIME type .log to the IIS mime types
