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

  • Home
  • SEARCH
  • 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 6703157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:08:18+00:00 2026-05-26T07:08:18+00:00

I think Im going insane, but I cannot get a simple default index.html page

  • 0

I think Im going insane, but I cannot get a simple default index.html page to display in jetty.

the root context defined in the web.xml is

<servlet-mapping>
    <servlet-name>jersey-servlet</servlet-name>
    <url-pattern>/*</url-pattern>
</servlet-mapping>

and I have welcome file as:

<welcome-file-list>
   <welcome-file>index.html</welcome-file>
</welcome-file-list>

But upon entering http://localhost:8182/api/ i get a 404. This works FINE in tomcat so what am I missing??????????? Am doing something dumb I know but still…works on tomcat.

thanks

  • 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-26T07:08:18+00:00Added an answer on May 26, 2026 at 7:08 am

    There isn’t enough information in your question to be 100% sure, but I suspect you’re running into problem that “welcome files need to actually exist”.

    This page provides more details, including how to overcome the problem:
    http://web.archive.org/web/20150520205320/https://docs.codehaus.org/display/JETTY/Welcome+files+not+working

    The short explanation is that, by default, this version of Jetty will not treat a servlet as matching a welcome-file unless an actual file also exists.

    The reason for this, is that JSPs are implemented as a servlet, and if Jetty matched welcome files just because there was a servlet-mapping match, then index.jsp would always match as a welcome file, but you only want that to happen if there really is an index.jsp file.

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

Sidebar

Related Questions

I think this is going to be one of those simple-when-you-see-it problems, but it
I might be going insane, but I don't think I've ever seen this in
I think the answer to this is no going in, but I could use
So, I think I may be going insane. This batch script: @Echo on dir
Maybe I'm going insane, but I could have sworn that there was an PHP
OK so I am going slightly insane. I am trying to do a simple
So likely not the best title but that's what I think is going on.
Sorry, but I think I am going mad. I have this in C++: std::stringstream
I think I'm going a little crazy. Right now, I'm working with the following
I think I'm going to have to use the Crypto libraries in my iPhone

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.