tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52511] Exception thrown and logged for all web apps without /WEB-INF/classes
Date Mon, 23 Jan 2012 21:06:50 GMT

Jess Holle <> changed:

           What    |Removed                     |Added
         OS/Version|                            |All

--- Comment #1 from Jess Holle <> 2012-01-23 21:06:50 UTC ---
This appears to be due to a change in ContextConfig from:

                        webinfClasses =
                        processAnnotationsUrl(webinfClasses, webXml);


                        NamingEnumeration<Binding>  listBindings =
                        while (listBindings.hasMoreElements()) {
                            Binding binding = listBindings.nextElement();
                            if (binding.getObject() instanceof FileDirContext)
                                File webInfCLassDir =
                                    new File(
                                processAnnotationsFile(webInfCLassDir, webXml);

which is all well and good except for the differences in behavior when
/WEB-INF/classes is not found.  The old code did not consider this an error and
just moved on.  The new code considers this an error to be logged including an
exception trace.

I'd patch this myself, but I'm not familiar with the code.  This leaves open
questions like: should listBindings() throw an exception upon finding no
bindings -- or should it really just return an empty enumeration?  What other
side-effects will this have?  Or should this ContextConfig code be changed.

Overall this makes any perfectly fine web app without /WEB-INF/classes look
suspect/unreliable, which is not appropriate.

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