This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Servlets and the fly likes restarting the server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "restarting the server" Watch "restarting the server" New topic
Author

restarting the server

sandy sean
Ranch Hand

Joined: Dec 30, 2010
Posts: 69
how the changes made to JSP or servlets can be seen automatically on browser without restarting the server(say Tomcat)???

Thanks...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60071
    
  65

Servlet containers use special classloaders for JSPs so that they can be replaced with new versions without restarting anything. A change to se rvlet requires a restart of the web application, but not the server.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
sandy sean
Ranch Hand

Joined: Dec 30, 2010
Posts: 69
Sorry Bear Bibeault for late responding to your answer!

A change to servlet requires a restart of the web application, but not the server.


can you please explore some more on that how web application is restarted without restarting the server(say tomcat) in order to see the changes in servlets??

and also how to see changes in web.xml or struts.xml etc without restarting the server.

Thanks...
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39575
    
  27
The details of how to restart individual web apps are specific to the servlet container. For example, Tomcat has the Manager web app (generally at http://localhost:8080/manager/html) that allows you to do this.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: restarting the server
 
Similar Threads
multiple message resource file for multiple struts-config.xml
session persistance from server perspective
Problem with WSAD 5.1.1
ResourceBundle
SEVERE: BAD packet signature: SEVERE: Error, processing connection