Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets not running on web server

 
Gopinath G
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic