Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 24th, 2006, 04:41 AM
Authorized User
 
Join Date: Apr 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tomcat: restart only one application

I'm new in tomcat, y do restarts with .bat files in /bin folder.

But how can I do a restar of only one webapp? Could I do it with a .bat file?
Thanksss


___________________
http://www.hhdirecto.net
http://www.dechiste.com


__________________
http://www.terapiahiphop.com
 
Old March 30th, 2006, 05:15 AM
Authorized User
 
Join Date: Nov 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To turn on servlet reloading, edit Edit install_dir/conf/context.xml and change

<Context>
to
<Context reloadable="true">



for Tomcat 5.X

for Tomcat less then 5.x put

<Context path="" docBase="ROOT" debug="0"/>
<DefaultContext reloadable="true"/>

in server.xml


There is a possibility to restart only webappl without restarting the sever, it could be a solution.


1. go and change ur tomcat-users.xml and add a user with such a line

<user name="yourname" password="yourpassword" roles="manager" />

2. restart ur tomcat.

3. in ur web browser, type http://localhost:8080/manager/list (or whatever port u r using)

4. log in with the password and name, u shld see the list of the applications running

5. type http://localhost:8080/manager/stop?path=/myapp to stop that specific app

6. type http://localhost:8080/manager/start?path=/myapp to start that app again.

7. the updated compiled beans or classes should load properly.

or

http://localhost:8080/manager/html


For more info:

http://tomcat.apache.org/tomcat-5.0-...20Applications





Similar Threads
Thread Thread Starter Forum Replies Last Post
using tomcat as an application server deepak Apache Tomcat 0 July 27th, 2008 01:53 PM
Cache/Restart application mike_remember ASP.NET 1.0 and 1.1 Professional 0 February 2nd, 2008 01:32 AM
what reload do in Tomcat Web Application Manager kamii47 Apache Tomcat 0 November 12th, 2005 11:55 AM
Please help!! Tomcat 5.0 restart failure IreneC Apache Tomcat 1 August 24th, 2005 05:12 AM
Restart an application aldwinenriquez General .NET 0 August 16th, 2005 07:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.