I have set up Tomcat 3.1 to run with Apache 1.3.12 on NT box. But I run
into the certain problems when I run the demo servlet codes "snoop" and
"servletToJsp" in "examples/wen-inf/classes" directory. Since the
following servlet mappings have been added "web.xml":

  <servlet-mapping>
  <servlet-name>snoop</servlet-name>
  <url-pattern>/snoop</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
  <servlet-name>servletToJsp</servlet-name>
  <url-pattern>/servletToJsp</url-pattern>
  </servlet-mapping>

I can successfully run these demo codes by simply typing:
"http://localhost:8080/examples/snoop" and
"http://localhost:8080/examples/servletToJsp". I can also successfully
run the codes by typing "http://localhost/examples/servlet/snoop" and
"http://localhost/examples/servlet/servletToJsp".

However I cann't run them successfully by typing
"http://localhost/examples/snoop"  and
"http://localhost/examples/servletToJsp". The message I got are like
"Not Found The requested URL /examples/snoop (or servletToJsp) was not
found on this server".

Can someone please let me know what is wrong in my configuration?

Thanks,

Laiwu Luo

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to