Deploy XWiki in a Servlet Container

Version 8.1 by Vincent Massol on 2026/11/25 21:30

Steps

  1. Install a supported servlet container.
  2. Download the XWiki WAR package corresponding to the version you want to install.
  3. Copy or extract the XWiki WAR package into the servlet container's deployment directory.
  4. Configure the XWiki permanent directory.
  5. Copy any additional required JDBC drivers or libraries into the servlet container, or into the XWiki web application's WEB-INF/lib directory.
  6. Configure the servlet container for your environment: memory settings, ports, HTTPS, context path and security settings.
  7. Start the servlet container. XWiki is deployed and answers on the container's HTTP port.

Community-contributed instructions exist for containers that are not officially supported, and that receive no guaranteed testing:

FAQ

Which servlet containers are officially supported?

Tomcat and Jetty, at the versions listed in the Servlet Container Support Strategy.

Can I deploy XWiki under a context path other than /xwiki?

Yes, by naming the deployment directory accordingly. Set the same path in the xwiki.webapppath property of xwiki.cfg so that XWiki generates its URLs correctly.

More

To find more about the current topic, you can search, select an highlighted topic, or use the table below and filter the columns to narrow your choices.

  • Configure Tomcat
    • Set up Tomcat with enough memory, the XWiki WAR, a database and a permanent directory, then start it.
  • Configure Jetty
    • Set up a Jetty base directory with the modules, URI compliance and memory XWiki needs, deploy the WAR into it and start it.
  • Configure Tomcat for XWiki in Docker
    • Change the Tomcat settings of the XWiki Docker image by mounting an edited copy of its conf directory from the host.
  • Configure Jetty for XWiki in Docker
    • Run the XWiki WAR in the official Jetty Docker image, with its database and permanent data kept outside the container.
  • Java Memory for Tomcat
    • OutOfMemoryError in Tomcat comes from default memory settings below what XWiki needs, and goes away once the JVM gets a larger heap.
  • Tomcat Troubleshooting
    • Startup failures, thread and memory limits, oversized requests and session errors that Tomcat may report when running XWiki.

Related

Get Connected