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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:45:56+00:00 2026-05-31T23:45:56+00:00

I am running Tomcat 5.54 app server from Eclipse Indigo under Windows 7 Ultimate.

  • 0

I am running Tomcat 5.54 app server from Eclipse Indigo under Windows 7 Ultimate. My servlet is using a .jsp and the .jsp page contains (among others) the following to “include” some JavaScript into the .jsp:

When the servlet runs the .jsp page is displayed but I get 404 errors like “The requested resource (/MyServer/WebContent/WEB-INF/JSP/Scripts/Modernizr-2.5.3.js) is not available.” on all of the .js and .css files that are included in the .jsp page.

The relevant file locations are:
./WEB-INF/JSP the .jsp file
./WEB-INF/JSP/Scripts the .js file
./WEB-INF/JSP/CSS the .css files

In particular, Modernizr-2.5.3.js is located (as managed by Eclipse) at .\Projects\MyServer\WebContent\WEB-INF\JSP\Scripts\Modernizr-2.5.3.js. I understand that the path to “included” content such as .js, .css, images and such is relative to the location of the submitted URL, not relative to the displayed .jsp and it is my understanding that the best way to handle this is to use a fully qualified path in the src= URL, which I believe I am doing. However, I get 404 errors. I have tried placing Modernizr-2.5.3.js (as a test case) “all over the place” and I have never been able to eliminate the 404 errors. (I realize I can pull this particular script from the web but that doesn’t solve the problem that I have.)

Do I have a mistake in the src= URL? If not, what else would cause these 404 errors?

Thanks for the help.

  • 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-31T23:45:58+00:00Added an answer on May 31, 2026 at 11:45 pm

    WEB-INF isn’t available publicly. It is usually used to store you JSP and library files and descriptors. If you want to reference your javascript and css resources without having to go through some dispatcher that loads them from the classpath (i.e. you want to reference them like a regular web resource) they should be in some other directory outside of WEB-INF.

    So I would suggest creating Projects/MyServer/WebContent/js and Projects/MyServer/WebContent/css and put your js and css in the appropriate folder. Then the src attribute can point to /js/Modernizr-2.5.3.js and /css/mycss.css

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

Sidebar

Related Questions

I'm launching wkhtmltopdf from within my Java app (part of a Tomcat server, running
I'm trying to setup josso on an apache tomcat server running on windows. I've
I have a following setup: App - Magnolia site running under Tomcat 6.0.16 ISAPI
On one developer workstation running Eclipse Helios SR2, Windows 7 and Tomcat 6.0.32 we
I have to connect to server(servlet on tomcat) always running and process the http
I am using the built in tomcat server in eclipse for my debugging and
I need to run my servlet on a server with a running tomcat. I
We have a Java web application (app #1) running under Tomcat. Our requirement: We
I am running Tomcat 5.5.4 and have a servlet running with no problems. However,
I am running Tomcat Apache server for solr and I my web interface is

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.