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

HelloWorld servlet not working

Frank Daly
Ranch Hand

Joined: Mar 31, 2000
Posts: 139
I am having problems using the HelloWorld servlet. I am using NT and tomcat 4.1.18.
my ..\root\web-inf\web.xml file is at the bottom of the page and I don't know why my servlet is not working!
any help greatly appreciated

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
<display-name>Welcome to Tomcat</display-name>
Welcome to Tomcat
<!-- Servlet -->
<!-- Servlet Mapping -->
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
If you are addressing it with the /servlet/HelloWorld URL, you are running into the "invoker" servlet problem. There has been a run of these recently, browse through the last week of "my servlet doesn't work" messages.
I agree. Here's the link:
subject: HelloWorld servlet not working
Similar Threads
HelloServlet not running ?
What's wrong with me?
Starting out on Servlets - from Head First Servlets and JSP
Processing Form Data
web.xml issue