Re: Tomcat on 64-Bit only?

Home Forum Integrating PerfectForms Tomcat on 64-Bit only? Re: Tomcat on 64-Bit only?

#4757

ehuezo
Keymaster

The documentation is correct, and you should use JDK. Please see the following instructions:

Installing Tomcat on Windows

Tomcat is a free web server software and can be installed the following Windows systems, among others:

Windows Server 2003 32-bit

Windows Server 2003 64-bit

Windows Server 2008 32-bit

Windows Server 2008 64-bit

Windows Vista

Windows XP

Windows 2000

This guide does not cover installation on other platforms such as Linux.

1. Tomcat requires the Java JDK Version 1.6 (not less) to be present on the Windows system.

You can check you current version by:

– Start – Run…

– Enter “command”

– In the command window, type “java –version”

– The java version number is be displayed on the next line

If you don’t have Java at all or a lesser version than 1.6, download and install the “JDK 6 Update” from:

java.sun.com/javase/downloads/index.jsp

There are different installers based on platform (32bit, 64bit)

2. Download and install Tomcat “Windows Service Installer” (Version 6 or later).

tomcat.apache.org/download-60.cgi

During the installation, ensure that you point to the correct folder where Java JDK 1.6 is located

3. Download the ZIP file of same Tomcat version from the same link and replace all files from the installed tomcat folder with the files and folders from the extracted .ZIP. This is because in some cases the installer creates all the required entries for you but it doesn’t provide all the necessary files.

4. Define the JAVA_HOME environment variable. Go to Control Panel > System > Advance Settings > Advanced > Environment Variables. Under System Variable click New and type JAVA_HOME as the variable name and provide the JDK 1.6 path as a value.

Note: You may need to restart your system to make the JAVA_HOME variable active in environment, but if you don’t want to restart your computer temporarily just type Set JAVA_HOME={Path to JDK} in command prompt.

5. On the same Environment Variables dialog, under System variables, locate the “Path” variable. Select it and press Edit.

The Variable value contains a list of paths separated by “;”. This list should contain the path to the JDKbin path. The bin folder is just one level below the JDK root, for example:

C:jdk160bin or C:Program FilesJavajre1.6.0_06bin

If the path is not in the value, add it at the end of the existing value.

6. Check if the C:WindowsSystem folder contains the msvcr71.dll file. If you do not see the file then you need to download and copy the file into this folder.

This file is freely available online, search for it in Google, or go here:

http://www.dll-files.com/dllindex/dll-files.shtml?msvcr71

7. If you want Tomcat to run on a different port other than 8080, edit the server.xml file, found in the Tomcat installation subfolder /config. For example:

C:Program FilesApache Software FoundationTomcat 6.0confserver.xml

Look for the <Connector> tag and modify the port attribute. For example:

<Connector port=”80″ protocol=”HTTP/1.1″

connectionTimeout=”20000″

redirectPort=”8443″ />

8. For all Windows 64-bit versions (2003, Server 2008, Vista, XP):

Download the 64-bit Tomcat service wrapper (same for Intel 64 and Amd 64 processors) from:

After download, rename the file to “tomcat6.exe” and copy this file into the Tomcat installation folder, replacing the current file with the same name.

9. Restart Windows (if possible)

10. Start “Tomcat Monitor” from Start Menu > Apache Tomcat > Monitor Tomcat and/or double-clicking its icon in the system tray. A dialog similar to the following appears:

If the Stop button is enabled, this means that Tomcat is now successfully running.

If the Start button is enabled, press it to start Tomcat. If it doesn’t start check the log file Jakarta_service_todays-date.log in C:Program Files (x86)Apache Software FoundationTomcat 6.0logs for possible errors.

Modify Startup type from “Manual” to “Automatic” to ensure that Tomcat starts after a reboot without the need of a manual start.