aspose file tools*
The moose likes Servlets and the fly likes 404 -file not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "404 -file not found" Watch "404 -file not found" New topic
Author

404 -file not found

Rabi Tumpa
Greenhorn

Joined: Oct 06, 2005
Posts: 9
Hi,
I am trying to run a simple servlet in WASD-6, and getting this error "404 -file not found" when I am trying to run on server.
Could anyone help please?

Thanks!
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783
You will need to give us a little more information before we can help yo. For starters, post your web.xml and the url you are trying to hit.


“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
Rabi Tumpa
Greenhorn

Joined: Oct 06, 2005
Posts: 9
I am running on server not hitting any url. though it looks like "http://localhost:9080/...".

Below is 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">
<display-name>
GolfProject</display-name>
<servlet>
<description>
</description>
<display-name>
GolfAVG</display-name>
<servlet-name>GolfAVG</servlet-name>
<servlet-class>
j2eebook.golf.controller.GolfAVG</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>GolfAVG</servlet-name>
<url-pattern>/GolfAVG</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>

</welcome-file-list>

</web-app>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: 404 -file not found