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

Anonymous
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.
JKP.
neeraj
Greenhorn

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
http://localhost:8080/servlet/filename
Eg:- http://Neeraj:8080/servlet/Stock
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Thank you Neeraj. It works.
JKP.
 
 
subject: Error 404