Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 24th, 2006, 04:41 AM
Authorized User
Join Date: Apr 2005
Location: , , .
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?


Reply With Quote
  #2 (permalink)  
Old March 30th, 2006, 05:15 AM
Authorized User
Join Date: Nov 2005
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

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

<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.



For more info:

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 08:39 PM.

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