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 4336860
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:51:54+00:00 2026-05-21T10:51:54+00:00

In the current system set up I have several configuration files stored in the

  • 0

In the current system set up I have several configuration files stored in the conf/Catalina/localhost directory. For example images.xml:

<Context path="/images" docBase="/home/user/images" debug="0" privileged="true" />

This allows to link to files inside this directory, for example: http://localhost:8080/images/image.jpg

But when the mapped drive is on a network location it happens that the connection to the drive is lost. Because Tomcat is then unable to reach the destination the configuration is automatically undeployed. Because of the real web application running on this server I don’t want to change this Tomcat settings.

So the question is, can I include this configuration in a WAR file? This would make it easier to redeploy and probably allow me to bundle configurations?

  • 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-21T10:51:54+00:00Added an answer on May 21, 2026 at 10:51 am

    The specific configuration tells tomcat to load the web app from a specified directory (outside of tomcat’s default). This is tomcat specific configuration so even if it was possible to bundle this config in war (which i don’t think you can) I’d recommend not to go that path.

    The better way would be bundle to your images as a exploded war file (so that you can add remove images while tomcat is running)and deploy it in the tomcat. As i understand you want to keep you images in separate network drive whose connectivity is intermittent. In that case it makes sense for tomcat to undeploy the context when the resource is not available.

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

Sidebar

Related Questions

On my current project, which is a delivery system, I have a list of
I have a large set of files for which some heavy processing needs to
In the current system I'm working on I need to have functionality for ammendments.
I have a tab system set up that uses the following structure to automatically
I have a system set up to generate random codes. It creeates hundreds of
I currently have a user system set up with 2 models --> The Plans
I have my system set up to compile jee6 code from the command line
I'm trying to determine if the current system is 32 or 64 bit. And
We are designing an update to a current system (C++\CLI and C#). The system
How can I get the current system status (current CPU, RAM, free disk space,

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.