tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52511] Exception logged in annotation scanning for web apps without /WEB-INF/classes
Date Tue, 24 Jan 2012 08:48:37 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52511

Konstantin Kolinko <knst.kolinko@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 <knst.kolinko@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


Mime
View raw message