TurnKey Linux Virtual Appliance Library

Standalone Tomcat

-

Java Servlet and JSP Platform

Tomcat is a servlet container that implements the Java Servlet and the JavaServer Pages (JSP) specifications, and provides a "pure Java" HTTP web server environment for Java code to run in. Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.

Stable version: 14.1 (changelog)

This appliance configures Tomcat as a standalone application server (I.e., without an external web server). A Tomcat on Apache Appliance is also available for integrations requiring a fully-featured web server.

This appliance includes all the standard features in TurnKey Core, and on top of that:

  • Tomcat configurations:
    • Installed from package management.
    • Using OpenJDK Java runtime.
    • Web applications in /var/lib/tomcat7/webapps.
    • Includes TurnKey web control panel.
    • Created Tomcat admin/manager roles and admin user.
    • Bind Tomcat HTTP connector to port 80 (default: 8180).
    • Bind SSL interface to port 443 (default: 8443).
    • Disabled AJP connector on port 8009 (security).
    • Tomcat and Java environment variables configuration system wide.
  • Includes MySQL.
  • SSL support out of the box.
  • Postfix MTA (bound to localhost) to allow sending of email from web applications (e.g., password recovery).

Usage details & Logging in for Administration

No default passwords: For security reasons there are no default passwords. All passwords are set at system initialization time.

Ignore SSL browser warning: browsers don't like self-signed SSL certificates, but this is the only kind that can be generated automatically without paying a commercial Certificate Authority.

Username for tomcat administration applications:

Login as username admin

Web - point your browser at either:

  1. http://12.34.56.789/ - not encrypted so no browser warning
  2. https://12.34.56.789/ - encrypted with self-signed SSL certificate

Username for database administration:

Login as MySQL username root at

  1. https://12.34.56.789:12322/ - Adminer database management web app
  2. MySQL command line tool:
    $ mysql --user root --password
    Enter password:
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    mysql>
    

Username for OS system administration:

Login as root except on AWS marketplace which uses username admin.

  1. Point your browser to:
  2. Login with SSH client:
    ssh root@12.34.56.789
    

    Special case for AWS marketplace:

    ssh admin@12.34.56.789
    

* Replace 12.34.56.789 with a valid IP or hostname.