jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Error 404" Watch "Error 404" New topic

Error 404

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have javawebserver2.0 in my system. Just I wrote my first servlet program and stored it in public_html directory.
My class file location is - ..public_html\prgs\HW.class
I try to run it in my browser, I got file not found - 404 error.
Tried with URL : "http://localhost:8080/servlet/prgs/HW"
Can anyone help me to solve this problem? I could run other examples in my browser. I think this problem is not uncommon.
Thanks in Advance.

Joined: Feb 18, 2000
Posts: 10
You have place the servlet class in javawebserver/servlets directory.
You can access the servlet by giving the URL as
Eg:- http://Neeraj:8080/servlet/Stock
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Thank you Neeraj. It works.
I agree. Here's the link: http://aspose.com/file-tools
subject: Error 404
It's not a secret anymore!