Deploy on Tomcat 10 / Java 17
This page describes how to deploy a brXM 16 project to an environment running Tomcat 10 and Java 17.
For comprehensive installation and deployment instructions for on-premise environments, see configure Tomcat on Linux.
Common Libraries
The project distribution generated with the -Pdist profile (see create a project distribution) has updated library requirements in brXM 16.
In brXM 16, the /common/lib directory includes the following libraries:
jakarta.activation-api.jarjakarta.mail-api.jarangus-activation.jarangus-mail.jar
This replaces the single jakarta.mail.jar from Sun that was used in brXM 15.
The following libraries should still be present:
geronimo-jta_1.1_spec.jarjcr.jar
Do not include any activation or mail-related JAR files in the cms.war or site.war. These JARs should also not be pre-installed in Tomcat (for example, do not place them in /usr/local/share/tomcat-common/lib as previously documented for brXM 15).
context.xml Configuration
Due to the migration from javax to jakarta namespaces, update any "mail/Session" resource definitions in conf/context.xml. Change the type attribute from javax.mail.Session to jakarta.mail.Session:
<Resource name="mail/Session" auth="Container" type="jakarta.mail.Session" mail.smtp.host="localhost" mail.smtp.port="2525" />