Apache Tomcat

Apache Tomcat

The Apache Tomcat is a Java application server, and it is an open source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies. Apache Tomcat software powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.

Multiple versions of Tomcat is actively in use right now. Kurian supports versions 9 and 10 with Java 8 as the runtime JVM. The tomcat service is configured to be managed using systemd on Linux platforms where systemd support is available.

Users of Tomcat 10 onwards should be aware that, as a result of the move from Java EE to Jakarta EE as part of the transfer of Java EE to the Eclipse Foundation, the primary package for all implemented APIs has changed from javax.* to jakarta.*. This will almost certainly require code changes to enable applications to migrate from Tomcat 9 and earlier to Tomcat 10 and later.

Refer Tomcat official documentation at https://tomcat.apache.org/index.html for details.

Features

  • Fully configured service that is available for deploying Java applications when the EC2 node is up and running.
  • The AMI is built using patched operating system and production grade.
  • No custom configuration and so it is easy to do any additional configuration needed for a specific environment.

Configuration

  • When an EC2 node is spun up from this AMI, Tomcat service would be up and running on port 8080 over HTTP.
  • Tomcat on this machine can be managed as a UNIX service as follows:
    • $ sudo systemctl start|stop|status tomcat # On platforms that support systemd
    • $ sudo service tomcat start|stop|status # On platforms that doesn’t support systemd, mainly Amazon Linux 2018.
  • Both JAVA_HOME and CATALINA_HOME are globally defined by having those set in /etc/profile.d/set-tomcat-env.sh. The locations of Java and Tomcat directories can be found from those settings on the target platform.

Unsupported Configurations

Kurian releases latest, stable versions of open source software on popular Linux distributions. If you need a configuration that is not currently available in marketplace, send us your requirements to contact@kurianinc.us. Please include the following info in the email:

  • Name of Software to be on the AMI with version numbers.
  • Linux distribution and the version.
  • The EC2 instance type you plan to spin up from the AMI (optional).

How It Works

  • When an EC2 node spun up from this AMI, Tomcat would be up and running on port 8080 over HTTP.
  • Additional configurations such as adding SSL encryption (access over HTTPS), reverse proxy and Docker registry can be set up following the official documentation.

Click on the links below to take you to Amazon Marketplace for spinning up EC2 nodes.

Tomcat 9

Tomcat 10

Upgrade

Follow official Apache Tomcat documentation for upgrades.

Maintenance and Troubleshooting

  • Kurian can help with configuring the application for your specific needs using this AMI. Contact us with details to contact@kurianinc.us

Remote Access to EC2 Node

Following are the standard AWS defined users available for SSH when a node is provisioned:

  • Amazon Linux: ec2-user
  • Red Hat Linux: ec2-user
  • SuSE Linux: ec2-user
  • Fedora: fedora
  • CentOS: centos
  • Debian Linux: admin
  • Ubuntu: ubuntu

Release history

  • 02/15/2021 – Initial release of version 10.0.2 on Debian 10, Ubuntu 16.04/18.04/20.04, Amazon Linux 2018/2, Fedora 31, CentOS 7.9/8.3, RHEL 7.9/8.3, SUSE 12.5/15.2, openSUSE Leap 15.2