This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Invocation of Deployment Descriptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Invocation of Deployment Descriptor" Watch "Invocation of Deployment Descriptor" New topic

Invocation of Deployment Descriptor

priya subramanian

Joined: Nov 03, 2012
Posts: 2
Hi All,

When is the deployment descriptor configurations are loaded in a container. In other words, who is invoking the
Deployment descriptor. Which is the class that reads the xml and continues the dispatch of request based on the configuration.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60755

No such class is specified in the specification, so each container will have its own internal classes to handle this sort of thing.

This sort of knowledge is not necessary to know to write servlets and web applications. If you're just curious abut how containers are written, then grab the source code to one of the free ones and have a look.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12759
If you really want to know, put an error in your web XML and look at the resulting stack trace.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60755

Oh, aren't you the sneaky one!
Babu Naresh

Joined: Apr 26, 2010
Posts: 5
Hi Priya,

If I understand your question properly,
When the web app is deployed, its the responsibility of the container to read web.xml, parse it, and load the classes(servlets) in to the memory.
At this step, classes are instantiated and were ready to serve requests.


priya subramanian

Joined: Nov 03, 2012
Posts: 2
Thank you all for replying.

Yes Babu, I was asking for the same information. But I thought of knowing in detail about the class and method of the container where the exact parsing is done and how the container
interprets the XML. But I understand that this level of information is more than that is needed for coding.

Thanks & Regards

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Invocation of Deployment Descriptor
Similar Threads
weblogic 8.1 , Oracle sequence problem.
make default.jsp as home page
Question about Container Managed Relationship
about HttpSessionActivationListner
how to know the table name in CMP