wood burning stoves 2.0*
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, www.somename.com. 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 "http://www.somename.com/servlet/classname.class". 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 http://www.somename.com/servlet/myservlet
where myservlet is the alias name of the servlet.
[This message has been edited by Prasad Charasala (edited November 06, 2000).]

Consider Paul's rocket mass heater.
subject: Servlets not running on web server