tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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

Konstantin Kolinko <> 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 <> 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

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:
------- You are receiving this mail because: -------
You are the assignee for the bug.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message