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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:35:19+00:00 2026-05-12T07:35:19+00:00

I have a web app: MyApp.war, inside it, I have a jar file: WEB-INF/lib/PublicJar.jar

  • 0

I have a web app: MyApp.war, inside it, I have a jar file: WEB-INF/lib/PublicJar.jar

  • I want client applications to be able to download that jar like a web resource.
    e.g http://theserver.com/myapp/jars/PublicJar.jar

  • I want the web application to be able to compute the hashcode of the jar file to
    see if it has changed, so clients know if it needs to reload it.

Can this be done?

  • 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-12T07:35:20+00:00Added an answer on May 12, 2026 at 7:35 am

    Resources inside WEB-INF cannot be served directly to the client. If you want to do that, you need to write a servlet/controller to extract it as a ServletContext resource and feed it to the http response.

    Is PublicJar.jar also used by your application itself? Could you not move it out of WEB-INF, or maybe bundle two copies of it in the WAR, one under WEB-INF (for internal application use), and one for downloading?

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

Sidebar

Related Questions

I have a web app, where I keep a subdomain for every client eg:
I have a home page home.html inside a war file named webapp-1.0.war. When the
I have a packaged app.war file that I am trying to copy to the
I have built a web app at myapp.heroku.com where myapp is actually the random
I have a rails app that has 2 subdomains: API (CORS) => api.myapp.dev Web
For example: MyApp is a web app that contains a properties file (server.properties) that
I have a web app that users upload files to. I want to authenticate
I have live tiles in my app and is not a web service app.
In my app i have access to web server. It works fine in Some
I have a web-app with a Java back-end that uses Tomcat jdbc-pool for database

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.