Tomcat 3.x allowed access to servlets under a common mapping (/servlet/*) by
default. In Tomcat 4.x the developers stopped this behavior by default.
This was done by the invoker servlet.
To enable this, under $CATALINA_HOME/conf, modify the web.xml file. Search
for "invoker" and you should find something like this:
<!-- The mapping for the invoker servlet -->
<!--
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
-->
Just uncomment and it should work. Note that "/servlet/" is no longer part
of the specification as of 2.3. Mapping it is recommended.
Regards,
Paul
-----Original Message-----
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 4:29 PM
To: [EMAIL PROTECTED]
Subject: Easy /servlet question
I have a very simple question, to which neither I nor my wife can find the
answer.
My servlet is in the WEB-INF/classes directory of my application directory.
For some reason, I can't get this simple construction--it's in all the JSP
books--to work:
http://127.0.0.1:8080/e-Denton/servlet/Upload_CnW
I get this error:
HTTP Status 404 - /e-Denton/servlet/Upload_CnW
message /e-Denton/servlet/Upload_CnW
description The requested resource (/e-Denton/servlet/Upload_CnW) is not
available.
I can get it to wotk with a sevlet mapping, but not without it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]