This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat restart for changes

 
Priya Bindra
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have tomcat 5.5.28 . For any small changes that i make to my servlet classes i need to restart tomcat to see changes. is there a workaround for this?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64186
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use Tomcat's manager app to just restart the web app. There's no need to stop and restart Tomcat itself.
 
Priya Bindra
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:You can use Tomcat's manager app to just restart the web app. There's no need to stop and restart Tomcat itself.


how can i do that?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64186
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's all covered in the Tomcat documentation.
 
Charles Owen
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are merely changing a servlet, shouldn't you be able to just reload the application instead of restart it?

If you bring up the manager application (http://localhost:8080/manager/html), you should see a listing of all your applications. There you should have the ability to reload, deploy, undeploy, or restart your app.
 
Prasanna Puttappa
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just edit web.xml (like add/delete some extra space) and save. This will reload the webapp :-)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64186
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Charles Owen wrote:If you are merely changing a servlet, shouldn't you be able to just reload the application instead of restart it?

"reload" and "restart" mean the same thing.
 
Anbarasu Aladiyan
Ranch Hand
Posts: 182
Chrome Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Priya Bindra,
go to ..\tomcat\conf\Catalina\localhost folder and create a file named <context_of_project>.xml.
And the content of <context_of_project>.xml file will be like

For more information about the configuration refer here.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic