Section 3.1.1 Learning Jetty Configurations

The command argument following -jar start.jar specifies the names of configuration files. These files inform Jetty which ports to listen on, webapps to deploy, and generally configures all container-related customizable settings. You may have one or many configuration files depending on your needs.

The etc/jetty.xml file provided in the distribution includes many examples of alternative configuration settings that can be activated by uncommenting some contents inside the xml file. For your convenience, this configuration instructs jetty to deploy all webapps found in the webapps directory. Therefore, in order to deploy a new webapp, you need not do anything more than drop your war file, or a directory containing your unpacked war file, into the webapps directory.


  • Currently 2.89/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
  Flag Inappropriate Content 0 comments