aspose file tools*
The moose likes Servlets and the fly likes Error: 404 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Error: 404" Watch "Error: 404" New topic
Author

Error: 404

Alamu Vinai
Greenhorn

Joined: Feb 01, 2001
Posts: 19
I installed tomcat and I can see files in my root folder.
Eg. webapps/examples/servlet/helloworld
If I try to create a folder called servletclasses and created a file called hello and compiled. The following error was given. How to solve this?
Error: 404
Location: /examples/servlet/servletclasses/hello
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Did you create servletclasses dir under examples dir?
If so, you have to put a package statement inside hello.java servlet file.
package servletclasses;
public class hello extends HttpServlet .... {
}
From browser please type:
http://localhost:8080/examples/servlet/servletclasses.hello
Note the DOT in servletclasses.hello
regds
maha anna
Alamu Vinai
Greenhorn

Joined: Feb 01, 2001
Posts: 19
Thanks so much Maha. It works now.
 
Don't get me started about those stupid light bulbs.
 
subject: Error: 404