tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnson, Garrett" <>
Subject RE: Cannot Run Servlets, only JSP's, Part II (Attn: Mark)
Date Mon, 09 Dec 2002 17:19:44 GMT

Thank you, that sounds like exactly what it could be.  And I'd prefer to do
it the RIGHT way, explicitly mapping out each servlet.

Just one question:  WHICH web.xml file?  There's one in:


and one in 


Will one override the other?

-----Original Message-----
From: Mark Eggers []
Sent: Monday, December 09, 2002 12:12 PM
To: Tomcat Users List
Subject: RE: Cannot Run Servlets, only JSP's, Part II

The invoker servlet is commented out by default in
4.1x.  Anonymous servlets are considered a security

There are at least three ways to manage this problem.

1. Uncomment the following in your Tomcat's web.xml

    <!-- The mapping for the invoker servlet -->

This maps the invoker servlet and allows anonymous
servlets in your application.  Read the documentation
concerning the security issues, and also know that
this is a nonstandard feature of Tomcat.

2. Use the invoker servlet only in your web
application.  This has the same ramifications as the
first solution, but constrained to a single
application.  Add the following to your

<!-- for anonymous servlets -->

3. Add each and every servlet to the web.xml file,
complete with a URL mapping.  This is the preferred
way.  Here is an example.




just my two cents . . . .

--- "Johnson, Garrett" <> wrote:
> Oh, yeah:  My system information:
> Win2K, SP3
> Tomcat 4.1 listening on Port 8080

> I'm running through the O'Reilly (
> tutorial on deploying
> applications in Tomcat, and I can't seem to get
> servlets to work.  I render
> JSP's just fine, but once I request a servlet, I get
> a an HTTP Status 404
> error:
> The requested resource
> (/onjava/servlet/com.onjava.login) is not available.

Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message