Tomcat has its default servlet invoker disabled by default. So you can put the code below into the "web.xml" file so that the URL you're typing in can work. <code> <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping> </code>
Best regards, Romualdo Rubens de Freitas mailto:[EMAIL PROTECTED]
David Thielen escreveu:
Hi;
I am trying to get a very simple servlet to display (the example ones work fine). This is my web.xml file:
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app> <display-name>Windward Utilities</display-name> <servlet> <servlet-name>hello</servlet-name> <servlet-class>HelloWorldExample</servlet-class> </servlet> </web-app>
My directory is: C:\Program Files\Apache Group\Tomcat 4.1\webapps\utils\WEB-INF\web.xml C:\Program Files\Apache Group\Tomcat 4.1\webapps\utils\WEB-INF\classes\HelloWorldExample.* C:\Program Files\Apache Group\Tomcat 4.1\webapps\utils\WEB-INF\classes\LocalStrings*.properties
When I put in the url http://localhost:8080/servlet/hello
I get:
HTTP Status 404 - /servlet/hello
---------------------------------------------------------------------------- ----
type Status report
message /servlet/hello
description The requested resource (/servlet/hello) is not available.
---------------------------------------------------------------------------- ----
Apache Tomcat/4.1.18 any ideas?
thanks - dave
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
