The geronimo-web.xml deployment plan is used to deploy web applications consisting of Java Servlet Pages (JSP) and servlets to to Geronimo, and optionally can be used to configure the web server (i.e., Tomcat or Jetty) where the Web application is going to be deployed.
The geronimo-web.xml deployment plan can be packaged as follows:
- Embedded in a WAR file. In this case, a geronimo-web.xml file must be placed in the /WEB-INF directory of the WAR, which is the same place where the web.xml file must be located.
- Maintained separately from the WAR file. In this case, the path to the file must be provided to the appropriate Geronimo deployer (e.g., command-line or console). Note that in this case, the filename can be named something other than geronimo-web.xml but must adhere to the same schema.
- Embedded in an enterprise application EAR file: In one case, the high-level element <web-app> can be embedded in the EAR file's geronimo-application.xml file.
- Embedded in an enterprise application EAR file: In another case, the actual geronimo-web.xml file can be placed in the /META-INF directory of the EAR, which is the same location as the application.xml file.