File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Do I need to restart TOMCAT??????? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Do I need to restart TOMCAT???????" Watch "Do I need to restart TOMCAT???????" New topic
Author

Do I need to restart TOMCAT???????

shivani anand
Ranch Hand

Joined: Dec 28, 2000
Posts: 155
Hi! All,
One real quick question....
Do I need to restart Tomcat and Apache everytime I make changes to the .class file or by just making <DefaultContextreloadable="true"/>
in Server.xml will take care of the changes made.
BTW I am talking about unix platform.
thanks,
SA
Jeremy Thornton
Ranch Hand

Joined: Feb 21, 2002
Posts: 91
Setting dynamic loading of contexts is handy during development - but it does make tomcat run like a dog.
I'm sure there's something vaguely amusing about that, but can think what.
shivani anand
Ranch Hand

Joined: Dec 28, 2000
Posts: 155
so everytime I replace old .class file with new one I've to restart Apache and tomcat?
SA
Jeremy Thornton
Ranch Hand

Joined: Feb 21, 2002
Posts: 91
Nope, if you set the reloadable flag in server.xml then tomcat will reload classes on the fly.
Tomcat does take a significant performance hit if this setting is used though so it's generally only used for during development. Once your context has stabilised it's generally better to stop tomcat, remove the reloadable option and restart it.
Obviously once the flag has been removed, any changes will require you to stop and start tomcat to pick them up.
shivani anand
Ranch Hand

Joined: Dec 28, 2000
Posts: 155
Thanks Jeremy.
There is one more ques. Do you know what exactly manager.xml do. Following are line from tomcat

Install the manager.xml context configuration file in the appBase for your Host.
Configure the Manager Context within the Host configuration in your Tomcat server.xml configuration. Here is an example:
<Context path="/manager" debug="0" privileged="true"
docBase="/usr/local/kinetic/tomcat4/server/webapps/manager">
</Context>
thanks,
Shivani
shivani anand
Ranch Hand

Joined: Dec 28, 2000
Posts: 155
Has anyone worked with manager APP
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
this is regarding my previuos question of this post. Whether I need to restart tomcat and Apache everytime I change my .class file.
thanks
SA
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Perhaps you should ask that question in the Tomcat forum.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Sanjeev Kaushik
Ranch Hand

Joined: Aug 01, 2002
Posts: 105
I am sure apache is required to restart when you first time deploying the servlet.
But after changes in the .class file, tomcat restart is sufficient to load the new class. Apache is not required to be started again.


Sanjeev Kaushik
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do I need to restart TOMCAT???????