• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading deployement descriptor

 
aresh babu
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

which class will read the web.xml file in the tomcat web container?


Thanks in advance

Regards,
Aresh Babu
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you bother ?
 
aresh babu
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am interested to know the internal flow of servlet life cycle
 
Vijitha Kumara
Bartender
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
aresh babu wrote:I am interested to know the internal flow of servlet life cycle

As an application developer you should know the lifecycle of a servlet (init(),destroy() etc..) well. But the internal of the container may different from each vendor so how tomcat does one thing may differ from the way some other container does that same thing.
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, it really does not matter how the internals work. There is a specification that the container has to follow and it is totally up to the container how it achieves this. the specification and the things the container has to ensure is the only thing that matters to the developer.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat uses org.apache.tomcat.util.digester package, the Digester class - as you will see from the stack trace if you make an error in web.xml syntax.

Digester is also available as part of the commons project.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic