Start by downloading the proper binary distribution of Tomcat 8 for your Windows platform (https://tomcat.apache.org/download-80.cgi )
Then install and configure it as a Windows service as described in https://tomcat.apache.org/tomcat-8.0-doc/windows-service-howto.html
cd [Your Apache Tomcat Distribution]/bin
service.bat install
Finally install Jahia into an existing Tomcat installation, following the steps of https://academy.jahia.com/documentation/digital-experience-manager/7.1/technical/configuration-and-fine-tuning/installation#Application_server_specific_installations
When running the Tomcat as Windows service, the JVM options from tomcat/bin/setenv.bat
, are not taken into consideration and have to be added into "++JvmOptions
" service parameter.
You can also use the tomcat8w, the GUI application to set these JVM options.
If so, you have to set Initial memory pool to 2048m and Maximum Memory pool to 4096m, otherwise, the Jahia service will not start.
In case you are facing this error: org.jahia.services.templates.ModuleBuildHelper: Cannot set maven executable to mvn
, please check your configuration
jahia.properties
file under DigitalExperienceManager-EnterpriseDistribution-7.1.2.0/D/digital-factory-config/jahia
#mvnPath = mvn
mvnPath = mvn.cmd
C:\Program Files\apache-maven-3.3.9\bin
(for instance). Otherwise, you have to create it by duplication the mvn.batmvn.cmd
If the issue persists, this is likely possible that the Tomcat 8 service was started with the System account.
To change to the user account: