Java Servlets and JSPs are made available on the VPS v3 via Tomcat, the flagship product of the Apache Jakarta Project. Tomcat is a world-class implementation of the Java Servlet 2.4 and Java Server Pages 2.0 specifications.
Installation
- Install Java (JDK 2).
- Connect to your server through SSH and execute the following command from the prompt:
% vinstall tomcat
This starts the Tomcat engine. It knows how to parse JavaServer pages, Java Servlets, and other kinds of Java implementations. It runs a web server on port 8080.
Configuration
The Tomcat installation includes online admin pages that can be accessed on your server at this URL:
http://YOUR-DOMAIN.NAME/manager/htmlIn order to set up a user name and password for these online admin pages, complete the following steps:
- Open the /usr/local/tomcat/conf/tomcat-users.xml file and add a user with roles set to admin and/or manager. An example would be as follows:
<user name="johnny" password="cash" roles="admin,manager" />The name and password fields can be any value you choose but the roles need to include admin, though there can be additional (comma separated) roles.
- Restart Tomcat. First stop Tomcat with this command:
% /usr/local/tomcat/bin/shutdown.shThen restart Tomcat again with this this command:
% /usr/local/tomcat/bin/startup.sh
More Information
For more information, see:
Please note: the information on this page applies to ITS web hosting plans. It may or may not apply to other environments. If you are looking for a feature described here, or better support from your hosting provider, please consider hosting your site with ITS!
Copyright © 1996-2024, Integrated Technical Solutions, Inc., all rights reserved. See Terms/Legal for trademarks, copyright, and terms of use.
Naperville, IL 60563
fax 630.420.2771