Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6776A91D4 for ; Thu, 5 Apr 2012 08:16:00 +0000 (UTC) Received: (qmail 92325 invoked by uid 500); 5 Apr 2012 08:15:59 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 92273 invoked by uid 500); 5 Apr 2012 08:15:59 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 92237 invoked by uid 99); 5 Apr 2012 08:15:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2012 08:15:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2012 08:15:56 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D93CF35970D for ; Thu, 5 Apr 2012 08:15:34 +0000 (UTC) Date: Thu, 5 Apr 2012 08:15:34 +0000 (UTC) From: "Gildas Cuisinier (Created) (JIRA)" To: dev@tomcat.apache.org Message-ID: <1955099485.16204.1333613734891.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (MTOMCAT-135) tomcat7:run does not load HandlesTypes in application classes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 tomcat7:run does not load HandlesTypes in application classes ------------------------------------------------------------- Key: MTOMCAT-135 URL: https://issues.apache.org/jira/browse/MTOMCAT-135 Project: Apache Tomcat Maven Plugin Issue Type: Bug Components: tomcat7 Affects Versions: 2.0 Environment: Mac OS X, Apple JDK 1.6 Reporter: Gildas Cuisinier Assignee: Olivier Lamy (*$^=C2=A8%`=C2=A3) Spring 3.1 brings a SpringServletContainerInitializer, that has annotation = @HandlesTypes(WebApplicationInitializer.class). In my application, I have a WebApplicationInitializer directly in my war. T= his one is compiled and put in WEB-INF/classes. When launching with tomcat7:run-war, my WebApplicationInitializer is correc= tly found by tomcat and provided to SpringServletContainerInitializer. But with tomcat7:run, I've this line in logs : INFO: No Spring WebApplicationInitializer types detected on classpath It seems that the problems come from the ContextConfig classe (from tomcat = source), in method webConfig that specificly search a "WEB-INF/classes" := =20 // Step 4. Process /WEB-INF/classes for annotations // This will add any matching classes to the typeInitialize= rMap if (ok) { // Hack required by Eclipse's "serve modules without // publishing" feature since this backs WEB-INF/classes= by // multiple locations rather than one. NamingEnumeration listBindings =3D null; try { try { listBindings =3D context.getResources().listBin= dings( "/WEB-INF/classes"); } catch (NameNotFoundException ignore) { // Safe to ignore } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org