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?
posted 15 years ago
Hi, 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. ------------------ Prasad [This message has been edited by Prasad Charasala (edited November 06, 2000).]