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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:54:16+00:00 2026-05-13T12:54:16+00:00

I am trying to get a simple helloworld test project going so I can

  • 0

I am trying to get a simple helloworld test project going so I can build upon it. I am using Java EE with maven in Eclipse and am getting a Requested reseource is not available error from tomcat in my web browser.

Right now all I have is a test jsp page to print Hello World which is all I am trying to get working. I created a maven project using the command mvn archetype:generate .. to generate the project structure which I then imported into Eclipse. I then added a dynamic web facet to the project.

The following is what my web.xml file looks like:

<!DOCTYPE web-app PUBLIC
 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
 "http://java.sun.com/dtd/web-app_2_3.dtd" >

<web-app>
<display-name>Archetype Created Web Application</display-name>

<welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>

How do I get tomcat to pick up my index.jsp file so that I can display it? Am I missing something in my web.xml file? I have a tomcat server running from within eclipse so this is not the problem. Would I need a servlet mapping entry in my web.xml? I am just really lost as to how this all fits together. Any help would be great.

This is the command I used to generate the maven project:

mvn archetype:generate -DarchetypeArtifactId=maven-archetype-webapp \
                   -DgroupId=com.mycompany.app \
                   -DartifactId=my-webapp \
                   -Dversion=1.0-SNAPSHOT 

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-13T12:54:16+00:00Added an answer on May 13, 2026 at 12:54 pm

    I created a maven project using the command mvn archetype:generate ... to generate the project structure which I then imported into Eclipse. I then added a dynamic web facet to the project.

    You shouldn’t have to add any facet, things should just work if your project has a packaging of type war.

    It would thus have been nice to provide the full command you used to create your project with the archetype plugin. Did you use the maven-archetype-webapp archetype? Did you ran something like that:

    mvn archetype:generate -DarchetypeArtifactId=maven-archetype-webapp \
      -DgroupId=my.group.id -DartifactId=my-artifact -Dversion=1.0-SNAPSHOT
    

    If not, then be sure that your pom has a <packaging>war</packaging> and that you use the default structure for a war project (see Usage for an example).

    Then, what plugin are you using for the Eclipse integration? How did you import the project into Eclipse?

    If you are using the maven-eclipse-plugin (if you ran eclipse:eclipse), then you need to
    configure it for WTP support. You need to pass the wtpversion on the command line (or to configure the plugin in the POM):

    mvn -Dwtpversion=2.0 eclipse:eclipse
    

    If you are using m2eclipse, then just import your project as a Maven Project (right-click the Package Explorer then Import… > Maven Projects).

    In both case, your project should be recognized as a Dynamic Web Module that you can Run on Server). There is nothing manual to configure for this (no facet to add).

    Update: Did you install the Maven Integration for WTP (Optional) when installing m2eclipse?

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

Sidebar

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.