my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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
Cant find servlet in J2EE Server.help!
Problem in running jsp page in javawebserver
Problems getting servlets to work on Tomcat 4
Problem in running jsp page in javawebserver
compiling web.xml