Deployment in a Servlet Container
The most common way to deploy a search application is to package it as a standard Java
.war file, which can be deployed in any standard servlet container such as Tomcat or Jetty.
Create a WAR file
Create a WAR file suitable for deployment in a servlet container. Do either of the following:
Deploy the WAR file
Deploy the WAR file in the servlet container. Follow the instructions in the documentation for the servlet container.