File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlets not running on web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets not running on web server" Watch "Servlets not running on web server" New topic

Servlets not running on web server

Gopinath G

Joined: Nov 06, 2000
Posts: 2
I bought some webspace on Linux server with domainname say, It had two directories: "cgi-bin", "servlets". The servlets directory is a link to "/www/htdocs/servlets/somename/ " where as the root directory for the website is "/www/htdocs/somename".
I copied my class files to the servlets directories(which run fine on local machine). It gives me 404 error when accessed with the url "". What is wrong with it?
Prasad Charasala
Ranch Hand

Joined: Nov 02, 2000
Posts: 67
Check whether you have registered the servlets. Check whether your servlet classes are in the classpath.
your url should be like this
where myservlet is the alias name of the servlet.
[This message has been edited by Prasad Charasala (edited November 06, 2000).]

I agree. Here's the link:
subject: Servlets not running on web server
It's not a secret anymore!