Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat web.xml documentation?

I wonder if anyone can help?

I am having some issues with deploying a java app to tomcat and i wanted to see where the documentation for web.xml is.

I can't seem to find it.

I am using a standard web.xml but i would like to know what all the specific xml tags mean.

Of course normally using a standard web.xml just works but i would really like to see some documentation.

I have looked on the tomcat 7 documentation site but i can't seem to find it

Anyone had any luck

Thanks

like image 578
Martin Avatar asked Apr 18 '14 12:04

Martin


1 Answers

The file web.xml is also know as the deployment descriptor and is not tomcat-specific. If you want to find some documentation about the deployment descriptor look in the Java Servlet Specification, chapter 13 and also apendixes A and B. (this is for version 2.4, maybe you rather search for the most recent version, 3.1 I think)

Now if you are looking for documentation about the file web.xml in CATALINA_HOME/conf , the file itself is already well self-documented with internal comments, BTW, the first comment says:

  <!-- This document defines default values for *all* web applications      -->
  <!-- loaded into this instance of Tomcat.  As each application is         -->
  <!-- deployed, this file is processed, followed by the                    -->
  <!-- "/WEB-INF/web.xml" deployment descriptor from your own               -->
  <!-- applications.                                                        -->
  <!--                                                                      -->
  <!-- WARNING:  Do not configure application-specific resources here!      -->
  <!-- They should go in the "/WEB-INF/web.xml" file in your application.   -->
like image 197
morgano Avatar answered Sep 22 '22 13:09

morgano