Question

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

Was it helpful?

Solution

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.   -->

OTHER TIPS

maybe youll find this reference guide being usefull

If you mean web.xml in conf/web.xml , this is deployment descriptor for default application.

See here http://tomcat.apache.org/tomcat-7.0-doc/default-servlet.html

For general web.xml specification you have to check any JEE tutorial .

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top