[ https://issues.apache.org/jira/browse/MTOMCAT-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13566682#comment-13566682 ]
Gilberto C Andrade commented on MTOMCAT-128: -------------------------------------------- I can't, receiving 302 Found error: <quote> Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-SNAPSHOT.jar (427 B at 0.4 KB/sec) [WARNING] Failed to retrieve plugin descriptor for org.apache.tomcat.maven:tomcat7-maven-plugin:2.1-SNAPSHOT: Failed to parse plugin descriptor for org.apache.tomcat.maven:tomcat7-maven-plugin:2.1-SNAPSHOT (/home/gilberto.andrade/.m2/repository/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-SNAPSHOT.jar): error in opening zip file [WARNING] The metadata /home/gilberto.andrade/.m2/repository/org/sonatype/plugins/maven-metadata-apache.snapshots.xml is invalid: end tag name </body> must match start tag name <hr> from line 7 (position: TEXT seen ...</address>\n</body>... @9:8) [WARNING] The metadata /home/gilberto.andrade/.m2/repository/com/ning/maven/plugins/maven-metadata-apache.snapshots.xml is invalid: end tag name </body> must match start tag name <hr> from line 7 (position: TEXT seen ...</address>\n</body>... @9:8) [WARNING] The metadata /home/gilberto.andrade/.m2/repository/org/apache/tomcat/maven/maven-metadata-apache.snapshots.xml is invalid: end tag name </body> must match start tag name <hr> from line 7 (position: TEXT seen ...</address>\n</body>... @9:8) [WARNING] The POM for org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.1-SNAPSHOT is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.623s [INFO] Finished at: Wed Jan 30 14:43:10 BRT 2013 [INFO] Final Memory: 6M/245M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to parse plugin descriptor for org.apache.tomcat.maven:tomcat7-maven-plugin:2.1-SNAPSHOT (/home/gilberto.andrade/.m2/repository/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-SNAPSHOT.jar): error in opening zip file -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginDescriptorParsingException </quote> > The plugin ignores and/or parses web.xml incorrectally when using > tomcatWebXml 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 (*$^¨%`£) > Priority: Trivial > Fix For: 2.1 > > > In our project(jpa-spring-wicket) we need to filter the web.xml file, > changing some placeholder and putting it (the web.xml) in > ${project.build.directory}/${project.build.finalName}/WEB-INF/web.xml. > Using tomcat6-maven-plugin it find the correct file, but fail when parsing it: > <quote> > Caused by: java.lang.IllegalArgumentException: Duplicate context > initialization parameter contextConfigLocation > at > org.apache.catalina.core.StandardContext.addParameter(StandardContext.java:2661) > ... 52 more > Mar 16, 2012 11:49:12 AM org.apache.catalina.startup.ContextConfig > applicationWebConfig > SEVERE: Parse error in application web.xml file at > jndi:/localhost/a2p/WEB-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 > at > org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2806) > </quote> > Using tomcat7-maven-plugin it find the correct file, but ignores it so using > the original file which contain the ${placeholder}. Thus not initializing the > application: > <quote> > INFO - ContextLoader - Root WebApplicationContext: > initialization completed in 7808 ms > INFO - WebXmlFile - web.xml: url mapping found for filter > with name A2P: [/*] > Mar 16, 2012 12:08:16 PM org.apache.catalina.core.StandardContext filterStart > SEVERE: Exception starting filter A2P > java.lang.IllegalArgumentException: Invalid configuration type: > '${wicket.MODE}'. Must be "development" or "deployment". > at > org.apache.wicket.protocol.http.WebApplication.getConfigurationType(WebApplication.java:670) > at org.apache.wicket.Application.configure(Application.java:297) > at > org.apache.wicket.protocol.http.WebApplication.internalInit(WebApplication.java:613) > at org.apache.wicket.Application.initApplication(Application.java:806) > at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:346) > at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:286) > at > org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277) > at > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258) > </quote> > The plugin configuration: > <quote> > <plugin> > <groupId>org.apache.tomcat.maven</groupId> > <artifactId>tomcat7-maven-plugin</artifactId> > <version>2.0-beta-1</version> > <configuration> > <contextPath>${project.build.finalName}</contextPath> > > <tomcatWebXml>${project.build.directory}/${project.build.finalName}/WEB-INF/web.xml</tomcatWebXml> > </configuration> > </plugin> > </quote> > I have the jetty plugin setup as well and working, so I would try with tomcat > but without success until now. > Regards -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org