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