Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to view application

 
Sai Swami
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
carina caoor
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do You see TaskTrackingTool folder under Tomcat Home\webapps folder? Try restarting server, else copy TaskTrackingTool project under webapps folder.
 
Sai Swami
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ruguia,

The folder structure is showing under "webapps"



Thanks,
Sai
 
carina caoor
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
create index.html in the Tomcat Home\webapps\TaskTrackingTool and now access the url

http://localhost:8080/TaskTrackingTool

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic