This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes regarding Server.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "regarding Server.xml" Watch "regarding Server.xml" New topic

regarding Server.xml

yekkala krishna
Ranch Hand

Joined: Mar 04, 2007
Posts: 105

I want to know the ROLE of server.xml file in SERVLETS point of view.
please try to suggest to my problem.
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1599
hi krishna!
I am sure this will serve your purpose.
[ July 25, 2007: Message edited by: Akhilesh Trivedi ]

Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

The server.xml file does not have a role from the servlet's point of view.

It is the main configuration file for the Tomcat application server and is not part of the servlet specification.
It holds setting specific to Tomcat itself such as what ports to use, what connectors to use, the location and filename of any SSL certificates etc.

At one time it also held the <Context ..> entries for the individual applications (and still can) but those are usually configured in context fragment files.

The configuration file that does have a role from the servlet's point of view is the deployment descriptor (web.xml). To learn more about deployment descriptors, see the servlet specification (link in my signature).

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: regarding Server.xml
It's not a secret anymore!