Apache Tomcat

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 6

Steps to integrate Apache and Tomcat on Windows

Prerequisites JDK/JRE installed Apache installed Tomcat installed

1. Installing JDK/JRE (1.5 or above) Set Environment variable:

2. Then Installing Apache HTTP server (apache_2.2.14-win32-x86-no_ssl.msi). You can find from that url: http://www.apache.org/dist/httpd/binaries/win32 Install Tomcat 5 or 6 (default tomcat port 8080). 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.

Apache Tomcat Connector


Quick link to connector mod_jk<version>.so (http://www.apache.org/dist/tomcat/tomcatconnectors/jk/binaries/win32/jk-1.2.26/). Only version mod_jk-1.2.26-httpd-2.2.4.so is tested. Find mod_jk Connector http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.28/

Apache Tomcat Connectors 1.2.28 for WIN32


Here you'll find the module binaries for Microsoft IIS, Apache HTTPD and Sun Java System Web Server.

mod_jk-1.2.28-httpd-2.2.3.so is for Apache 2.2.x. It has been build against version 2.2.3, but should work with Apache 2.2.0 and later. Rename to mod_jk.so before putting it in your Apache2.2/modules directory or adjust your LoadModule statement. mod_jk-1.2.28-httpd-2.0.52.so is for Apache 2.0.x. It has been build against version 2.0.52, but should work with Apache 2.0.52 and later. Rename to mod_jk.so before putting it in your Apache2.0/modules directory or adjust your LoadModule statement. isapi_redirect-1.2.28.dll is for Microsoft IIS 5 and later Web Server. isapi_redirect-1.2.28-chunking.dll is for Microsoft IIS 5 and later Web Server with compiled chunking transfer support. nsapi_redirect-1.2.28.dll is for Sun Java System Web Server 7 and later (formerly Netscape iPlanet and Sun ONE). symbols.zip contain debug (.pdb) information files for all modules.

Steps to integrate Apache and Tomcat


1. Copy the downloaded connector mod_jk-<version>.so into <Apache Installed Dir>\modules, and rename it to mod_jk.so 2. Open a text editor (for example, notepad in windows, vi or gedit in Linux). 3. Copy the following lines into the text editor, and save the file as mod_jk.conf
<IfModule !mod_jk.c> LoadModule jk_module modules/mod_jk.so </IfModule>

<VirtualHost *> ServerName localhost JkLogFile "logs/mod_jk.log" JkLogLevel error # This block is for Tomcat 6. If you are working on Tomcat 5.5, try /jsp-examples and servlets-examples JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /SpatialDirect ajp13 JkMount /SpatialDirect/* ajp13 JkMount /webdav ajp13 JkMount /webdav/* ajp13 JkMount /balancer ajp13 JkMount /balancer/* ajp13 JkMount /tomcat-docs ajp13 JkMount /tomcat-docs/* ajp13 JkMount /manager ajp13 JkMount /manager/* ajp13 JkMount /fmeserver ajp13 JkMount /fmeserver/* ajp13 JkMount /fmedatadownload ajp13 JkMount /fmedatadownload/* ajp13 JkMount /fmedatastreaming ajp13

JkMount /fmedatastreaming/* ajp13 JkMount /fmekmllink ajp13 JkMount /fmekmllink/* ajp13 JkMount /fmeogc ajp13 JkMount /fmeogc/* ajp13 JkMount /fmesoap ajp13 JkMount /fmesoap/* ajp13 </VirtualHost>

4. Copy the created file mod_jk.conf into folder <Apache installed Dir>\conf\ . Note: In FME 2010 there is an additional servlet called fmedataupload. 5. In a text editor, open configuration file httpd.conf in the folder <Apache installed Dir>\conf\ 6. Copy the following lines into the end of httpd.conf and save the file
# Configure mod_jk integration with Tomcat Include conf/mod_jk.conf

7. Stop Apache. 8. Restart Tomcat. 9. Now, it's ready to install FME Server

Debugging
1. Web Server works? Try this URL in a browser http://localhost or http://<hostName> There should be a page displays "It works" if the web server works properly 2. Tomcat works? Try this URL in a browser http://localhost:<portNumber> or http://<hostName>:<portNumber>. The default port number is 8080 There should be a home page if the Tomcat servlet engine works properly 3. The integration works? Note: Make sure you installed examples before proceeding Try this URL in a browser http://localhost/examples or http://<hostName>/examples. If you are working on Tomcat 5.5, the URL will be http://localhost/jsp-examples or http://<hostName>/servlets-examples

Good Luck. Retrieved from "http://www.fmepedia.com/index.php/Web__Apache_and_Tomcat_Integration" Find mod_jk Connector http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.28/

Apache Tomcat Connectors 1.2.28 for WIN32


Here you'll find the module binaries for Microsoft IIS, Apache HTTPD and Sun Java System Web Server.

mod_jk-1.2.28-httpd-2.2.3.so is for Apache 2.2.x. It has been build against version 2.2.3, but should work with Apache 2.2.0 and later. Rename to mod_jk.so before putting it in your Apache2.2/modules directory or adjust your LoadModule statement. mod_jk-1.2.28-httpd-2.0.52.so is for Apache 2.0.x. It has been build against version 2.0.52, but should work with Apache 2.0.52 and later. Rename to mod_jk.so before putting it in your Apache2.0/modules directory or adjust your LoadModule statement. isapi_redirect-1.2.28.dll is for Microsoft IIS 5 and later Web Server. isapi_redirect-1.2.28-chunking.dll is for Microsoft IIS 5 and later Web Server with compiled chunking transfer support. nsapi_redirect-1.2.28.dll is for Sun Java System Web Server 7 and later (formerly Netscape iPlanet and Sun ONE). symbols.zip contain debug (.pdb) information files for all modules.

Configure Product:

If getting this error: 5 2009] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed. Solution: # EnableMMAP and EnableSendfile: On systems that support it, # memory-mapping or the sendfile syscall is used to deliver # files. This usually improves server performance, but must

# be turned off when serving from networked-mounted # filesystems or if support for these functions is otherwise # broken on your system. # Win32DisableAcceptEx on EnableSendfile off EnableMMAP off

You might also like