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 2012/01/24 09:48:37 UTC
DO NOT REPLY [Bug 52511] Exception logged in annotation scanning for
web apps without /WEB-INF/classes
https://issues.apache.org/bugzilla/show_bug.cgi?id=52511
Konstantin Kolinko <kn...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Exception thrown and logged |Exception logged in
|for all web apps without |annotation scanning for web
|/WEB-INF/classes |apps without
| |/WEB-INF/classes
Severity|normal |regression
--- Comment #3 from Konstantin Kolinko <kn...@gmail.com> 2012-01-24 08:48:37 UTC ---
Several notes.
First, this exception would not happen if either of the following two is true:
1. The web.xml specifies earlier version of servlet specification than 3.0
2. The web.xml has metadata-complete="true"
Note that using metadata-complete="true" is generally recommended to speed up
web application startup. That is if you do not need features disabled by that
option. All applications in default Tomcat distributive have
metadata-complete="true".
Second, this exception is harmless.
Scanning of WEB-INF/classes is skipped, as it should be.
The exception is caught and logged. It does not impede further annotation
scanning. Execution in ContextConfig#webConfig() continues.
This issue was introduced in r1209686
> 1210 log.error(sm.getString(
> 1211 "contextConfig.webinfClassesUrl"), e);
BTW, the exception handling was changed in r1209686 ,but the log message
template above has not been updated.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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