Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3940828
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:28:01+00:00 2026-05-20T00:28:01+00:00

Is it possible for a Tomcat to restart it self? I have a tomcat

  • 0

Is it possible for a Tomcat to restart it self?
I have a tomcat application. I’m adding a functionallity for the application to auto-update (the self application will download new war files). However, after this is done, I need to stop the application in order to modify the war.

I know that this can

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T00:28:02+00:00Added an answer on May 20, 2026 at 12:28 am

    If Tomcat is configured in autoDeploy mode, then there is no need to stop Tomcat itself to deploy a new version of the war. You just need to somehow replace the old war with the updated version in the $TOMCAT_HOME/webapps folder. Tomcat will detect the new version and auto deploy it.

    To store the updated war on your server, you can execute a script via Runtime.getRuntime().exec(…) as described here. The script to run could be an ant task that deploys the new war file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read that it is possible with Tomcat 5.5+ to deploy a war
Is it possible to bundle Tomcat with a Spring application with Java WebStart &
Possible Duplicate: Getting a value from HttpServletRequest.getRemoteUser() in Tomcat without modifying application Short version:
I'm using tomcat and have a couple jsp pages. I'm wondering if it's possible
is it possible to run spring mvc application on tomcat(with this plugin http://mojo.codehaus.org/tomcat-maven-plugin/ )
Possible Duplicate: Ignore SVN files when exporting a WAR file from Eclipse? Using eclipse
I am using Tomcat 7 as a servlet container and I have two war
Possible Duplicate: deploy war in Tomcat I Deployed solr.war in tomcat webapps folder and
I have a RESTful service using Jersey/Spring/Tomcat. My question is - is it possible
I have written a service for JIRA(a web application runs in tomcat) which runs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.