Index: ServletContainerInitializerUtil.java =================================================================== --- ServletContainerInitializerUtil.java (revision 42612) +++ ServletContainerInitializerUtil.java (working copy) @@ -422,15 +422,19 @@ Set> resultSet = new HashSet>(); if (type instanceof AnnotationType) { for (AnnotatedElement ae : ((AnnotationType) type).allAnnotatedTypes()) { - try { - resultSet.add(cl.loadClass(ae.getName())); - } catch (Throwable t) { - if (log.isLoggable(Level.WARNING)) { - log.log(Level.WARNING, - "servletContainerInitializerUtil.classLoadingError", - new Object[] {ae.getName(), t.toString()}); + if (ae instanceof Member) + ae=ae.getDeclaringType(); + if (ae instanceof Type){ + try { + resultSet.add(cl.loadClass(ae.getName())); + } catch (Throwable t) { + if (log.isLoggable(Level.WARNING)) { + log.log(Level.WARNING, + "servletContainerInitializerUtil.classLoadingError", + new Object[] {ae.getName(), t.toString()}); + } } - } + } } } else { Collection classes;