You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/11/15 15:19:27 UTC

[Bug 57216] Servlet mapping not found when creating RequestDispatcher for forward()

https://issues.apache.org/bugzilla/show_bug.cgi?id=57216

--- Comment #1 from Chuck Caldarale <ch...@unisys.com> ---
(In reply to tomcatuser2008 from comment #0)

> We configure our Context in server.xml:

Pretty much always a bad idea.

> <Host name="localhost"  appBase="" createDirs="false" unpackWARs="false"

An empty appBase is asking for trouble.

>   <Context path="/" ...>

This is an invalid path setting.  To quote from section 3.5 of the servlet
spec:

Context Path: The path prefix associated with the ServletContext that this
Servlet is a part of. If this context is the "default" context rooted at the
base of the Web server's URL name space, this path will be an empty string.
Otherwise, if the context is not rooted at the root of the server's name space,
the path starts with a / character but does not end with a / character.

You need to correct your configuration.  The fact that something useful
happened in prior versions is an accident.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org