This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes apache/tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "apache/tomcat" Watch "apache/tomcat" New topic
Author

apache/tomcat

Ronnie Livingston
Greenhorn

Joined: Aug 07, 2001
Posts: 17
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
Andrew Shafer
Ranch Hand

Joined: Jan 19, 2001
Posts: 338

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.

!_I_Know_Kung_Fu_!
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14491
    
    7

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: apache/tomcat
 
Similar Threads
Http port
Apache tomcat and Jakarta tomcat
Where to put Axis
"Apache Tomcat alone" OR" Apache HTTP server" OR "Apache Tomcat + Apache HTTP server"
Problem changing jsp property