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


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Error 404
 
Similar Threads
Problem in running jsp page in javawebserver
Cant find servlet in J2EE Server.help!
Problem in running jsp page in javawebserver
compiling web.xml
Problems getting servlets to work on Tomcat 4