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 41F50C188 for ; Wed, 2 May 2012 16:19:19 +0000 (UTC) Received: (qmail 64902 invoked by uid 500); 2 May 2012 16:19:14 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 64812 invoked by uid 500); 2 May 2012 16:19:14 -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 64607 invoked by uid 99); 2 May 2012 16:19:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2012 16:19:14 +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; Wed, 02 May 2012 16:19:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CCCAF42C907 for ; Wed, 2 May 2012 16:18:49 +0000 (UTC) Date: Wed, 2 May 2012 16:18:49 +0000 (UTC) From: =?utf-8?Q?Olivier_Lamy_=28*=24=5E=C2=A8=25=60=C2=A3=29_=28JIRA=29?= To: dev@tomcat.apache.org Message-ID: <1763658374.17587.1335975529851.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1953087024.24892.1331910699762.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (MTOMCAT-128) The plugin ignores and/or parses web.xml incorrectally when using tomcatWebXml option MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MTOMCAT-128?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Olivier Lamy (*$^=C2=A8%`=C2=A3) updated MTOMCAT-128: ------------------------------------------- Fix Version/s: (was: 2.0) 2.1 =20 > The plugin ignores and/or parses web.xml incorrectally when using tomcatW= ebXml option > -------------------------------------------------------------------------= ------------ > > Key: MTOMCAT-128 > URL: https://issues.apache.org/jira/browse/MTOMCAT-128 > Project: Apache Tomcat Maven Plugin > Issue Type: Bug > Components: tomcat6, tomcat7 > Affects Versions: 2.0-beta-1 > Environment: openSUSE 12.1 32Bits > Reporter: Gilberto C Andrade > Assignee: Olivier Lamy (*$^=C2=A8%`=C2=A3) > Priority: Trivial > Fix For: 2.1 > > > In our project(jpa-spring-wicket) we need to filter the web.xml file, cha= nging some placeholder and putting it (the web.xml) in ${project.build.dire= ctory}/${project.build.finalName}/WEB-INF/web.xml. > Using tomcat6-maven-plugin it find the correct file, but fail when parsin= g it: > > Caused by: java.lang.IllegalArgumentException: Duplicate context initiali= zation parameter contextConfigLocation > =09at org.apache.catalina.core.StandardContext.addParameter(StandardConte= xt.java:2661) > =09... 52 more > Mar 16, 2012 11:49:12 AM org.apache.catalina.startup.ContextConfig applic= ationWebConfig > SEVERE: Parse error in application web.xml file at jndi:/localhost/a2p/WE= B-INF/web.xml > org.xml.sax.SAXParseException; systemId: jndi:/localhost/a2p/WEB-INF/web.= xml; lineNumber: 15; columnNumber: 21; Error at (15, 21: Duplicate context = initialization parameter contextConfigLocation > =09at org.apache.tomcat.util.digester.Digester.createSAXException(Digeste= r.java:2806) > > Using tomcat7-maven-plugin it find the correct file, but ignores it so us= ing the original file which contain the ${placeholder}. Thus not initializi= ng the application: > > INFO - ContextLoader - Root WebApplicationContext: initiali= zation completed in 7808 ms > INFO - WebXmlFile - web.xml: url mapping found for filte= r with name A2P: [/*] > Mar 16, 2012 12:08:16 PM org.apache.catalina.core.StandardContext filterS= tart > SEVERE: Exception starting filter A2P > java.lang.IllegalArgumentException: Invalid configuration type: '${wicket= .MODE}'. Must be "development" or "deployment". > =09at org.apache.wicket.protocol.http.WebApplication.getConfigurationType= (WebApplication.java:670) > =09at org.apache.wicket.Application.configure(Application.java:297) > =09at org.apache.wicket.protocol.http.WebApplication.internalInit(WebAppl= ication.java:613) > =09at org.apache.wicket.Application.initApplication(Application.java:806) > =09at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java= :346) > =09at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java= :286) > =09at org.apache.catalina.core.ApplicationFilterConfig.initFilter(Applica= tionFilterConfig.java:277) > =09at org.apache.catalina.core.ApplicationFilterConfig.getFilter(Applicat= ionFilterConfig.java:258) > =20 > The plugin configuration: > > > org.apache.tomcat.maven > tomcat7-maven-plugin > 2.0-beta-1 > > ${project.build.finalName} > ${project.build.directory}/${project.bu= ild.finalName}/WEB-INF/web.xml > > > > I have the jetty plugin setup as well and working, so I would try with to= mcat but without success until now. > Regards -- 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