• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

apache/tomcat

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I was wondering what is the purpose of restarting Apache and/or tomcat when one is developing servlets and jsps? If im a systems administrator for a linux machine would i have to give my users permissions to do this? how would it be done?
thanks
 
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The server process needs to be restarted for a few reasons, but basically it all boils down to you changed something.
Not all changes require a restart, but adding classes or context to the server do, if I was a developer, I would be pissed if I didn't at least have a test server that I could restart without an admin.
I'm no expert sysadmin, but I keep my machines, I think all they would need is to be able to execute the startup scripts for tomcat. Don't quote me, but I think you would only need to restart apache if you add modules or something major, so you could probably get away with setting that up and letting it run.
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Helo!
I agree with Andrew ( which, by the way, is natural since Antti gets translated to Andrew )
What I have been experienced of tomcat, one can do loads of changes "on fly" - tomcat even seems to have some thread to peek these.Of course (?!) you cannot change classpath and stuff like that.
Oh, I am running tomcat 4.
------------------
Antti Barck
It Solutions Consultant -- NSD Oy
Sun Certified Programmer for the Java™ 2 Platform
 
Saloon Keeper
Posts: 28125
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The primary reason to restart Tomcat would be changes to the server.xml file, although it has somewhat of a reputation for not always detecting a need to recompile JSP's (at least in some versions) - which a restart can usually cure.
The docs indicate that Apache should be restarted if Tomcat is restarted because there's an open pipeline between the two. In practical experience, I'm not so sure. Then again, the docs may be outdated.
 
WARNING! Do not activate jet boots indoors or you will see a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic