• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Unable to view application

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
create index.html in the Tomcat Home\webapps\TaskTrackingTool and now access the url

http://localhost:8080/TaskTrackingTool

 
Bras cause cancer. And tiny ads:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic