Hi Everyone,
I exported my .war file under webapps directory of Tomcat installation from Eclipse 3.2. I go to
http://localhost:8080/manager and I can see my application has been deployed. However, when I click on the link, I am getting a 404 error.
Below is my web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!--<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> -->
<!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>
<servlet>
<servlet-name>TimesheetServlet</servlet-name>
<display-name>
TimesheetServlet</display-name>
<servlet-class>
TimesheetServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TimesheetServlet</servlet-name>
<url-pattern>/Timesheet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>/jsps/timesheet.jsp</welcome-file>
</welcome-file-list>
</web-app>
I am going to:
http://localhost:8080/TaskTrackingTool
I also have included a index.jsp under WEB-INF. It is not showing. I have included this file only for testing purposes. As seen in web.xml, I have my jsp under jsps folder under WEB-INF.
Even if I go to
http://localhost:8080/TaskTracking/jsps/timesheet.jsp, it is not showing anything. Giving 404 error.
Thanks for your time,
Sai