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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:58:29+00:00 2026-06-11T15:58:29+00:00

I have a folder, js, inside my WEB-INF folder and it holds javascript files.

  • 0

I have a folder, “js”, inside my WEB-INF folder and it holds javascript files. I can’t get the server to retrieve them using the url localhost:8084/appname/js/file.js but everything else defined in my web.xml file works fine.

Web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app>

   <servlet>
        <servlet-name>MeasurementNodesController</servlet-name>
        <servlet-class>com.mycompany.MeasurementNodesController</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>MeasurementNodesController</servlet-name>
        <url-pattern>/MeasurementNodes</url-pattern>
    </servlet-mapping>

    <resource-ref>
        <res-ref-name>jdbc/datasource</res-ref-name>
        <res-ref-type>javax.sql.DataSource</res-ref-type>
    </resource-ref>

    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
</web-app>
  • 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-11T15:58:30+00:00Added an answer on June 11, 2026 at 3:58 pm

    Anything in the WEB-INF folder is unavailable to the outside world. WEB-INF is only available internally for Forwards and such.

    You’ll need to move the JS out of WEB-INF to be able to use it.

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

Sidebar

Related Questions

i have a number of jsp files under web-inf folder. Inside my web.xml i
I have HTML pages that I put inside temp folder(Outside WEB-INF directory). I have
I have the following folder structure TempProj !-js !-jsp !-WEB-INF !-classes !-lib Inside my
I have a folder inside my ASP.NET web application. I put all css files
Suppose i have one folder and inside that another two files are there .
Instead of using a certain jar in my WEB-INF/lib folder, I want to use
I would like to have a /downloads folder inside an Orchard web app where
I currently have my .tag files declared with: <%@taglib prefix=t tagdir=/WEB-INF/tags %> Example of
I have a web application in a servlet container. How can I get the
I have a local server using Flask web framework running on my machine. What

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.