jQuery in Action, 2nd edition*
The moose likes Tomcat and the fly likes Unable to view application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unable to view application" Watch "Unable to view application" New topic

Unable to view application

Sai Swami
Ranch Hand

Joined: Sep 24, 2002
Posts: 51
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"



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,
carina caoor
Ranch Hand

Joined: Jun 23, 2007
Posts: 300

Do You see TaskTrackingTool folder under Tomcat Home\webapps folder? Try restarting server, else copy TaskTrackingTool project under webapps folder.
Sai Swami
Ranch Hand

Joined: Sep 24, 2002
Posts: 51
Hi Ruguia,

The folder structure is showing under "webapps"

carina caoor
Ranch Hand

Joined: Jun 23, 2007
Posts: 300

create index.html in the Tomcat Home\webapps\TaskTrackingTool and now access the url


It is sorta covered in the JavaRanch Style Guide.
subject: Unable to view application
Similar Threads
trying to run hello world script but it is not
Starting out on Servlets - from Head First Servlets and JSP
problem with web.xml
running a servlet from a new web application
Not able to display starting jsp page index.jsp