• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so everytime I replace old .class file with new one I've to restart Apache and tomcat?
SA
 
Jeremy Thornton
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Perhaps you should ask that question in the Tomcat forum.
 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic