Configure the Tomcat - server.xml

M

Mr. x

Hello,
In server.xml - what tag is for the default directory, that my server is
running ?
Is there any free editor (or any editor) for the server.xml & web.xml.

I need some help/tutorial for the server.xml & web.xml files, please.

Thanks :)
 
W

Wendy S

Mr. x said:
Hello,
In server.xml - what tag is for the default directory, that my server is
running ?

Don't post the same question in more than one newsgroup. Most of the people
who can answer your question read both, and it's a waste of time.

If you want to change the root context, find this part of server.xml

<!-- Tomcat Root Context -->
<!--
<Context path="" docBase="ROOT" debug="0"/>
-->

uncomment it, and change it. Better yet, leave it alone until you have a
good reason for wanting to change it.
Is there any free editor (or any editor) for the server.xml & web.xml.

Any text editor will do. Some of them will even turn the tags and
attributes different colors, and warn you if you've forgotten to close a
tag. I use JEdit.
I need some help/tutorial for the server.xml & web.xml files, please.

Have you read all of the descriptive comments in server.xml? Have you
examined the 'examples' webapp, and its web.xml, which also has comments?
Have you read the 'getting started' guide on the Tomcat home page? If you
ask specific questions, you'll get answers. What, exactly are you trying
to do, and where are you getting stuck?

The best reference for server.xml is the Servlet Specification, which also
explains exactly what Tomcat is required to do for you.
 
M

Mr. x

Thanks :)

Wendy S said:
Don't post the same question in more than one newsgroup. Most of the people
who can answer your question read both, and it's a waste of time.

If you want to change the root context, find this part of server.xml

<!-- Tomcat Root Context -->
<!--
<Context path="" docBase="ROOT" debug="0"/>
-->

uncomment it, and change it. Better yet, leave it alone until you have a
good reason for wanting to change it.


Any text editor will do. Some of them will even turn the tags and
attributes different colors, and warn you if you've forgotten to close a
tag. I use JEdit.


Have you read all of the descriptive comments in server.xml? Have you
examined the 'examples' webapp, and its web.xml, which also has comments?
Have you read the 'getting started' guide on the Tomcat home page? If you
ask specific questions, you'll get answers. What, exactly are you trying
to do, and where are you getting stuck?

The best reference for server.xml is the Servlet Specification, which also
explains exactly what Tomcat is required to do for you.
 
W

Wendy S

Wendy said:
The best reference for server.xml is the Servlet Specification, which also
explains exactly what Tomcat is required to do for you.

Make that 'web.xml'... 'server.xml' is not discussed in the specification.
 
B

Bob Rivers

JAVA Rookie said:

If you go to http://localhost:8080, you will see the tomcat welcome
page. In this page you can see two links: tomcat administration and
tomcat manager.

These two applications deals with server.xml and web.xml. Use these
application to do basic tasks, such as deploy a new application,
stop/start context and another configurayions.

But, if you intend to do fine tunning, you will need to learn how to
hack the both files, and as said by others, probably the best place to
learn it, it to look inside the examples that come with tomcat.

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top