The Tomcat Container allows servlet 2 and 3 web applications to be run. These applications are run as the root web application in a Tomcat container.
Detection Criterion | Existence of a WEB-INF/ folder in the application directory and Java Main not detected |
Tags | tomcat=⟨version⟩, tomcat-buildpack-support=⟨version⟩ |
In order to specify Spring profiles, set the SPRING_PROFILES_ACTIVE
environment variable. This is automatically detected and used by Spring.
For general information on configuring the buildpack, refer to Configuration and Extension.
The container can be configured by modifying the config/tomcat.yml
file. The container uses the Repository
utility support and so it supports the version syntax defined there.
Name | Description |
---|---|
repository_root |
The URL of the Tomcat repository index (details). |
version |
The version of Tomcat to use. Candidate versions can be found in this listing. |
Additional supporting functionality can be found in the java-buildpack-support
Git repository.