aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unable to view application" Watch "Unable to view application" New topic
Author

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"
"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

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"



Thanks,
Sai
carina caoor
Ranch Hand

Joined: Jun 23, 2007
Posts: 300

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

http://localhost:8080/TaskTrackingTool

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to view application