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

  • SEARCH
  • Home
  • 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 7825919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:12:08+00:00 2026-06-02T09:12:08+00:00

I am working on an old Java web application that runs on Tomcat. I

  • 0

I am working on an old Java web application that runs on Tomcat. I know that typically you run web apps from the webapps directory which uses Tomcat’s default server configuration (server.xml). This particular app is deployed to a different directory using a custom server.xml so it requires 1 tomcat instance per app. I believe the reason it was initially setup that way is due to the fact that each web app produces files that must be saved between redeploys of the application.

My question is – is there a way to use the webapps directory but also save certain files from being wiped out during a redeploy of the application?

Here’s the layout of our current tomcat

tomcat/
  servers/
    ourapp/
      output/   # heres where the files go that we save
      ourapp/   # this is the actual webapp (exploded WAR file)
        WEB-INF/
        ...

I want something like

tomcat/
  webapps/
    ourapp/
      output/  # but this is saved between redeploys
      WEB-INF/
    ...

My end goal is to get away from custom server.xml’s so we deploy multiple apps on one tomcat instance. Just in case in matters – we’re on Tomcat 6.

  • 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-06-02T09:12:10+00:00Added an answer on June 2, 2026 at 9:12 am

    I’d recommend not trying to store those files in webapps/ if you want them persisted. That directory is pretty volatile. Additionally, other developers maintaining the system may not realize you’ve stored persistent data there and might just wipe it accidentally.

    I’d go for a location in /var/lib, perhaps /var/lib/ourapp/.... Or you could store it in $HOME/.ourapp if that make sense for your server environment and how it’s managed.

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

Sidebar

Related Questions

I'm working on an old web application in Visual Studio .Net 2003 (yeeich) and
I'm working on an old RCP application that mysteriously stopped working, according to the
I'm working on a Java application that collects various bits of information on network
I'm working on old code that relies heavily on the exception specifications behavior described
I'm working with some old PHP code that has a lot of the following:
I am working on an old database I inherited from my predecessors. In it,
I am working on an old .NET 1.1 windows application. In the debugging configuration
I am working on an old ASP web app (not .net) and I need
This is more of best practice question. I'm working with old Java code at
I'm working on an old JSP webapp, that has basic 3 presentation areas: top

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.