aspose file tools*
The moose likes Servlets and the fly likes Tomcat, Apache WebServer: When restart? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat, Apache WebServer: When restart?" Watch "Tomcat, Apache WebServer: When restart?" New topic
Author

Tomcat, Apache WebServer: When restart?

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi guys,
does anyone of you know if you have to shutdown and restart Tomcat and the Apache WebServer in case your application (*.jsp-files and servlets) changed?
Thanks in advance,
Micha
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
JSP's will recompile automically when they are changed, it's a beautiful thing. you never have to bounce(stop and start) a server for JSP changes.
Changes in java classes are automatically reflected if you have it set to do so in your application's context, which is defined in the server.xml file in Tomcat. That being said, i found it doesn't work all the time, so I just bounce tomcat every time I change a class.
You should never have to bounce apache for these type of things.
(this is based on sun solaris versions of apache and tomcat).
jashman
joel@tantalus.com
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
jashman:
"That being said, i found it doesn't work all the time, so I just bounce tomcat every time I change a class."
Ah! Now we agree

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
BTW, commercial grade servers (even development tools) like IBM's Visual Age for Java recompile the JSPs when they are changed. Not so for the servlets. If you modify a servlet, you'll have to restart the Test Environment.
Joke: Do you know why they call it "Visual Age"? Because you age visually when you use it!
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi Tony:
So you think we have to restart the server every time we want to use changed servlets? That's pretty a bummer because the application might be used by a bunch of people which may be upset when the server is down quite often.
Hmmm, hope we do not have to correct our servlets after we'll have released our application.
Anyway, I thank you guys for your help!
Micha
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat, Apache WebServer: When restart?