tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: apache tomcat 8.0.0-rc1; /manager 404; NPE
Date Wed, 07 Aug 2013 03:34:25 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jieryn,

On 8/6/13 10:00 PM, jieryn wrote:
> Greetings,
> 
> On Tue, Aug 6, 2013 at 4:53 PM, Mark Thomas <markt@apache.org>
> wrote:
>> The Tomcat 7.0.x behaviour is identical to Tomcat 8.0.x. The root
>> cause of the stack trace in both versions is the missing 
>> configuration for the JSP servlet.
> 
> Ok, since the manager application already provides a web.xml file, 
> shouldn't it fully specify all of its requirements? If it requires
> a JSP renderer servlet, it should probably state so in its
> deployment descriptor; for completeness and correctness.

The servlet specification requires that certain services be provided
by the container. Among them are a) a default servlet to serve content
for which no other servlet mapping exists (e.g. static files, etc.)
and b) a servlet called "jsp" that is, by default, mapped to "*.jsp".

Tomcat chooses to provide the above services by using conf/web.xml as
a default. If you break that mechanism, you are going to lose some
functionality. The webapp should be able to rely on the default and
JSP servlets being available even without specifically configuring
them in the webapp's own web.xml.

Why are you deleting conf/web.xml in the first place?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSAcBAAAoJEBzwKT+lPKRYqD4P/iyAY5UyHy1Idi/Yh4I+tiFE
HharbiJmjqE4xsYkm1Bw48bzodFGYSPflPp5aKC7Zdc650M8+s1CeV90Ub0jaOzr
6uBHK2PrEpEGzlGhEgkW6aCV5wIpjOmGNwEH/io7wOtQ+3Qb8PGnedQQ1Z+qdrSS
Kl/pxxnATSs6yzt22Z4HbSNEC2xZ5dV87YJUjrLPGj3PP1Xvf0+CuAFhHlJ6tNA5
yyLhE8KUqa0FTnI3CzBDS8RZrhh4YMY9tw8lmcffefdQY67l3HYeEPlh3L77WCv9
xiFMN/K8CpZa7wXsD1spDVkf2IQov/hPJlVhf1ZccNnMgoLVEDP55i6gYPW7Njiq
JlDYuTp47vWGY9ShuCa2VRfRdOMD3C2+ZcqvCzaulrqC0zIs/7tIHv/29yL/0acW
Zcg70P6kuB3tp2Eme2l/JV5FBX0sZRyb45P5zJIS6RjM8WiyXp0TijepNjHVfLik
b4AK7pfR+SklPtA7Q6Kpw5fo2lYts6Op2lrYxfGHdQKw61dJP6wnllM1Rjh7YMPs
aKeo939pXSURu7rwL2EC3mJDBKp+Btvt/WzmUs/MpeZBjKnDMDAZ2n0frvy//+1G
5DJPZ8LSuGlHSR9ea3IJMY60u5UNz6Q28+/1jw7Xnh38BogC1Xc6bhtrP4DKtqeb
ghETsRiO14pLO9idCi9j
=6D38
-----END PGP SIGNATURE-----

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


Mime
View raw message