This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets not running on web server" Watch "Servlets not running on web server" New topic
Author

Servlets not running on web server

Gopinath G
Greenhorn

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
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).]


<B>Prasad</B>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlets not running on web server
 
Similar Threads
URL Question
Servlets not running on web server
WebSphere Portal Homepage
JSPs and Servlets in WAS, without a web application
invoke servlets from apache/htdocs/servlet