Installing Tomcat 10

Last modified by Aurelie Bertrand on 2026/03/19 11:41

This guide provides installation instructions for Tomcat 10 on Windows.



Installing Tomcat 10 

  1. Download TomCat 10 from https://tomcat.apache.org/download-90.cgi (Binary Distributions  - > Core -> 32-bit/64-bit Windows Service Installer).
  2. Launch apache-tomcat-10.X.XX.exe.
  3. Accept the license agreement.
  4. In the Components list, select Tomcat (Service Startup & Native) and Start Menu Item.
    Tomcat1.png
  1. Leave the configuration settings at default.
    Tomcat2.png
     
  2. Enter the path to the installation of the openjdk installed in step 1.
    Tomcat3.png
     
  3. Set the Tomcat 10 installation directory.
    Tomcat4.png
  4. Click Install to start Tomcat 10 installation.
  5. Open page http://localhost:8080 to check TomCat is working properly.
  6. Open the Tomcat 10 installation directory then the bin directory and launch tomcat10w.exe.
  7. Modify the parameters contained in the Java tab :
    Tomcat6.png

    • Adapt the paths to future digdash directories:
      Ddigdash.properties.path=E:\digdash\digdash.properties
       
    • To ensure that special characters are taken into account, add the parameter -Dfile.encoding=UTF-8 to the end of the JAVA_OPTS variable as below:
      Dfile.png
       
    • Add the parameters --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED --add-opens=java.base/sun.security.ssl=ALL-UNNAMED --add-opens=java.base/sun.security.util=ALL-UNNAMED in Java 9 options.

     

Important: Do not forget to increase the tomcat memory
Enter the same value in the “Initial memory” and “Maximum memory pool” fields in MB (example: “3000”)

Editing the server.xml file

  1. Open the server.xml file located in the \Apache Software Foundation\Tomcat 10.1\conf directory.
  <Connector port="8080" protocol="HTTP/1.1"
                connectionTimeout="20000"
                maxConnections="30000"
                maxCParametersCount="100000"
                maxThreads="10000" maxPostSize="62914560"
              redirectPort="8443" compression="on" />
  1. Change the path of the webapps to deploy.
<Host name="localhost"  appBase="E:/digdash/webapps/default"
            unpackWARs="true" autoDeploy="true">
      <Alias>digdash.client.com</Alias>

 

  1. Add the log valve and then, the securing valve.
<Valve className="org.apache.catalina.valves.ErrorReportValve" showReport="false" showServerInfo="false" /> 

❗ In case of SSO authentications (SAML or OpenID), the valve below must be placed before the SSO valve.

<Valve className="org.apache.catalina.valves.RemoteIpValve"
                internalProxies="127\.0\.[0-1]\.1"
                remoteIpHeader="X-Forwarded-For"
                requestAttributesEnabled="true"
                protocolHeader="X-Forwarded-Proto"
                protocolHeaderHttpsValue="https"/>

Editing the context.xml file

  1. Open the context.xml file located in the \Apache Software Foundation\Tomcat 10.1\conf directory.
  2. Add the following XML tag in the Context section:
<Resources cachingAllowed="true" cacheMaxSize="500000"/>