Howdy,
Uncomment the servlet-mapping element for the invoker servlet in
tomcat-install\conf\web.xml.  This servlet is commented out by default
in tomcat 4.1.18 for security purposes.

Alternatively, make an entry in your web.xml file (under ROOT/WEB-INF)
for your servlet, e.g.;
<servlet>
  <servlet-name>MyServletName</servlet-name>
  <servlet-class>classname</servlet-class>
</servlet>

<servlet-mapping>
  <servlet-name>MyServletName</servlet-name>
  <url-pattern>/MyServlet</url-pattern>
</servlet-mapping>

You can then access your servlet at http://localhost/MyServlet.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Percival Bragg [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, January 23, 2003 9:01 AM
>To: [EMAIL PROTECTED]
>Subject: Newbie to Tomcat needs help
>
>I have installed Tomcat on my Windows XP system and
>changed the port from 8080 to 80. I can get to the
>Tomcat page with http://localhost/ and also server up
>other html pages. I am using Tomcat to help in my
>learning of JSP.
>
>I created my first servlet and the compiled class is
>in the <tomcat-install>\webapps\ROOT\WEB-INF\classes
>directory. I then try access the servlet with
>http://localhost/servlet/classname (no .class) but
>this fails with the page unavailable error.
>
>What am I doing wrong. I am running tomcat 4.1.18.
>
>My thanks for any help.
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>http://mailplus.yahoo.com
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to