Install the Tomcat software according to the instructions included with Tomcat. You may find helpful information at the Jakarta Project site: http://jakarta.apache.org/tomcat/
Specify the Tomcat installation location.
Select to start Tomcat as a service, and then select the port to run on. The default port is 8080.
After downloading and unpacking the Tomcat installation bundle, modify the Tomcat startup script by using this procedure:
In the setclasspath.sh file in the $TOMCAT_HOME/bin directory, add these lines to the top of the file:
JAVA_HOME=Location of a JDK BASEDIR=Location of your unpacked Tomcat export JAVA_HOME BASEDIR |
When configuring Tomcat to support UTF-8, add the URIEncoding="UTF-8" attribute to the connector element in the TomcatDir/conf/server.xml file, for example:
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified during installation --> <Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8" /> |
When configuring Tomcat to support UTF-8, also add -Dfile.encoding=UTF-8 in your Java VM options.