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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:24:25+00:00 2026-06-06T22:24:25+00:00

I use Tomcat 7 on Windows XP. I have a directory with static files

  • 0

I use Tomcat 7 on Windows XP.

  • I have a directory with static files (HTML, CSS, JS) in %TOMCATDIR%/webapps/myapplication.
  • They’re accessible via localhost:8080/myapplication

When a change happens to a file in my server dir, it is not reflected:

  • modified files are returned (200 OK) the same as previously (tested with Fiddler; for sure not a browser cache issue – cleared cache, using different browsers etc.),
  • newly created files in that directory are not accessible (404).

The above happens no matter how many times I try to reload the file, or even add query string to it (img.jpg?timestamp=...).

In %TOMCATDIR%/conf/context.xml I’ve set various directives to disable server-side caching:

<?xml version='1.0' encoding='utf-8'?>
<Context antiResourceLocking="true" cachingAllowed="false" cacheMaxSize="1" cacheTTL="1">
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
</Context>

What is wrong?

  • 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-06T22:24:26+00:00Added an answer on June 6, 2026 at 10:24 pm

    The solution seems to be remove antiResourceLocking="true".

    If anyone’s more knowledgable about the topic, or know how to workaround it other way, I’ll be grateful.

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

Sidebar

Related Questions

I'm running Tomcat 6 on Windows and would like to have Tomcat use a
i want to configure tomcat 7 to use port 80 on windows 7, but
I have a Java web application running on Tomcat. I want to load static
I have a web app that runs under Tomcat on Windows XP that needs
I have a use case , where I need to display some log files
I'd like to setup Tomcat on Windows and have authentication in my web application
i use eclipse with tomcat 5.5 and jdk 1.6. i have 2 question 1.which
When starting Tomcat 6 on Windows 7 Enterprise with JRE 6 using C:\Program Files\Apache
I have Tomcat 6.0 installation on my Win7 PC. I used 64/32bit windows installation.
We use Tomcat for our java web application. There is a properties file under

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.