File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Adding servlets to Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Adding servlets to Tomcat" Watch "Adding servlets to Tomcat" New topic

Adding servlets to Tomcat

Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Hi all,
If I add a new servlet to my web application's classes directory and if I modify my web.xml file, shall I need to restart Tomcat each and every time I add a new servlet entry ?
Why is it so ?
Do any one has a link where I can read more about this ?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13024
Yes you have to restart Tomcat if you modify the web.xml file. It is so fast that I don't see that as a problem, and it saves lots of grief.
Dave Soto
Ranch Hand

Joined: Sep 15, 2001
Posts: 55

Why is it so ?

'Cuz Tomcat is FREE!
If you need hot deploy try Weblogic(Unmistakably NOT Free)
Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Ok, I got it.
But my client uses, Tomcat... No other choice other than restarting ...
I agree. Here's the link:
subject: Adding servlets to Tomcat
It's not a secret anymore!