File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error 404
 
Similar Threads
compiling web.xml
Cant find servlet in J2EE Server.help!
Problem in running jsp page in javawebserver
Problem in running jsp page in javawebserver
Problems getting servlets to work on Tomcat 4