Apache Tomcat Maven Plugin
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-128

The plugin ignores and/or parses web.xml incorrectally when using tomcatWebXml option

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-1
    • Fix Version/s: 2.1
    • Component/s: tomcat6, tomcat7
    • Labels:
      None
    • Environment:
      openSUSE 12.1 32Bits

      Description

      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

      1. myproject.zip
        24 kB
        Gilberto C Andrade

        Activity

        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        fixed.
        If you could try 2.1-SNAPSHOT.

        Show
        Olivier Lamy (*$^¨%`£) added a comment - fixed. If you could try 2.1-SNAPSHOT.
        Hide
        Hudson added a comment -

        Integrated in TomcatMavenPlugin-mvn3.x #229 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/229/)
        MTOMCAT-128 The plugin ignores and/or parses web.xml incorrectally when using tomcatWebXml option (Revision 1440473)

        Result = SUCCESS
        olamy : http://svn.apache.org/viewvc/?view=rev&rev=1440473
        Files :

        • /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/pom.xml
        • /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java
        • /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
        • /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/RunMojo.java
        Show
        Hudson added a comment - Integrated in TomcatMavenPlugin-mvn3.x #229 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/229/ ) MTOMCAT-128 The plugin ignores and/or parses web.xml incorrectally when using tomcatWebXml option (Revision 1440473) Result = SUCCESS olamy : http://svn.apache.org/viewvc/?view=rev&rev=1440473 Files : /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/pom.xml /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/RunMojo.java
        Hide
        Gilberto C Andrade added a comment -

        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>

        Show
        Gilberto C Andrade added a comment - 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>
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        any network issues accessing to http://repository.apache.org/content/repositories/snapshots ?

        what is the content of those files:

        • /home/gilberto.andrade/.m2/repository/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-SNAPSHOT.jar
        • /home/gilberto.andrade/.m2/repository/org/sonatype/plugins/maven-metadata-apache.snapshots.xml
        Show
        Olivier Lamy (*$^¨%`£) added a comment - any network issues accessing to http://repository.apache.org/content/repositories/snapshots ? what is the content of those files: /home/gilberto.andrade/.m2/repository/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-SNAPSHOT.jar /home/gilberto.andrade/.m2/repository/org/sonatype/plugins/maven-metadata-apache.snapshots.xml
        Hide
        Gilberto C Andrade added a comment -

        Yes, I have this problem:

        gilberto.andrade@A37710:~$ cat /home/gilberto.andrade/.m2/repository/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-SNAPSHOT.jar
        <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
        <html><head>
        <title>302 Found</title>
        </head><body>
        <h1>Found</h1>
        <p>The document has moved <a href="https://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-SNAPSHOT.jar">here</a>.</p>
        <hr>
        <address>Apache/2.2.20 (Ubuntu) Server at repository.apache.org Port 80</address>
        </body></html>
        

        and

        gilberto.andrade@A37710:~$ cat  /home/gilberto.andrade/.m2/repository/org/sonatype/plugins/maven-metadata-apache.snapshots.xml
        <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
        <html><head>
        <title>302 Found</title>
        </head><body>
        <h1>Found</h1>
        <p>The document has moved <a href="https://repository.apache.org/content/repositories/snapshots/org/sonatype/plugins/maven-metadata.xml">here</a>.</p>
        <hr>
        <address>Apache/2.2.20 (Ubuntu) Server at repository.apache.org Port 80</address>
        </body></html>
        gilberto.andrade@A37710:~$ 
        
        Show
        Gilberto C Andrade added a comment - Yes, I have this problem: gilberto.andrade@A37710:~$ cat /home/gilberto.andrade/.m2/repository/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-SNAPSHOT.jar <!DOCTYPE HTML PUBLIC "- //IETF//DTD HTML 2.0//EN" > <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href= "https: //repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-SNAPSHOT.jar" >here</a>.</p> <hr> <address>Apache/2.2.20 (Ubuntu) Server at repository.apache.org Port 80</address> </body></html> and gilberto.andrade@A37710:~$ cat /home/gilberto.andrade/.m2/repository/org/sonatype/plugins/maven-metadata-apache.snapshots.xml <!DOCTYPE HTML PUBLIC "- //IETF//DTD HTML 2.0//EN" > <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href= "https: //repository.apache.org/content/repositories/snapshots/org/sonatype/plugins/maven-metadata.xml" >here</a>.</p> <hr> <address>Apache/2.2.20 (Ubuntu) Server at repository.apache.org Port 80</address> </body></html> gilberto.andrade@A37710:~$
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        weird which maven version are you using ?
        Last one follow redirect.
        To fix that you can probably use directly https://repository.apache.org/content/repositories/snapshots as snapshots repository. (note https rather than http)

        Show
        Olivier Lamy (*$^¨%`£) added a comment - weird which maven version are you using ? Last one follow redirect. To fix that you can probably use directly https://repository.apache.org/content/repositories/snapshots as snapshots repository. (note https rather than http)
        Hide
        Gilberto C Andrade added a comment -

        gilberto.andrade@A37710:~/dev/netbeans-config/reca$ mvn --version
        Apache Maven 3.0.3 (r1075438; 2011-02-28 14:31:09-0300)
        Maven home: /home/gilberto.andrade/bin/maven
        Java version: 1.7.0_07, vendor: Oracle Corporation
        Java home: /usr/java/jdk1.7.0_07/jre
        Default locale: en_US, platform encoding: UTF-8
        OS name: "linux", version: "3.4.11-2.16-desktop", arch: "amd64", family: "unix"

        Can you access this URL https://repository.apache.org/content/repositories/snapshots/org/sonatype/plugins/maven-metadata.xml ?

        Show
        Gilberto C Andrade added a comment - gilberto.andrade@A37710:~/dev/netbeans-config/reca$ mvn --version Apache Maven 3.0.3 (r1075438; 2011-02-28 14:31:09-0300) Maven home: /home/gilberto.andrade/bin/maven Java version: 1.7.0_07, vendor: Oracle Corporation Java home: /usr/java/jdk1.7.0_07/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.4.11-2.16-desktop", arch: "amd64", family: "unix" Can you access this URL https://repository.apache.org/content/repositories/snapshots/org/sonatype/plugins/maven-metadata.xml ?
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        why this groupId org.sonatype.plugins ??
        this is not something hosted @ asf

        Show
        Olivier Lamy (*$^¨%`£) added a comment - why this groupId org.sonatype.plugins ?? this is not something hosted @ asf
        Hide
        Gilberto C Andrade added a comment -

        My settings.xml:

        <?xml version="1.0" encoding="UTF-8"?>
        <settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <localRepository>/home/gilberto.andrade/.m2/repository</localRepository>
        <pluginGroups>
        <pluginGroup>org.sonatype.plugins</pluginGroup>
        <pluginGroup>com.ning.maven.plugins</pluginGroup>
        <pluginGroup>org.apache.tomcat.maven</pluginGroup>
        </pluginGroups>

        Is there anything wrong here?

        Show
        Gilberto C Andrade added a comment - My settings.xml: <?xml version="1.0" encoding="UTF-8"?> <settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd " xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <localRepository>/home/gilberto.andrade/.m2/repository</localRepository> <pluginGroups> <pluginGroup>org.sonatype.plugins</pluginGroup> <pluginGroup>com.ning.maven.plugins</pluginGroup> <pluginGroup>org.apache.tomcat.maven</pluginGroup> </pluginGroups> Is there anything wrong here?
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -
        curl -I https://repository.apache.org/content/repositories/snapshots/org/sonatype/plugins/maven-metadata.xml
        HTTP/1.1 404 The server has not found anything matching the request URI
        Date: Thu, 31 Jan 2013 16:46:41 GMT
        Server: Noelios-Restlet-Engine/1.1.6-SONATYPE-5348-V4
        Vary: Accept-Charset,Accept-Encoding,Accept-Language,Accept
        Content-Type: text/html;charset=ISO-8859-1
        Cache-Control: must-revalidate,no-cache,no-store
        Content-Length: 1533
        Set-Cookie: rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Wed, 30-Jan-2013 16:46:41 GMT
        

        so maven see 404 and doesn't care of that.
        Can you cleanup your local repo ?
        rm -rf /home/gilberto.andrade/.m2/repository/org/sonatype/plugins
        rm -rf /home/gilberto.andrade/.m2/repository/org/apache/tomcat

        then try again with -U

        Show
        Olivier Lamy (*$^¨%`£) added a comment - curl -I https: //repository.apache.org/content/repositories/snapshots/org/sonatype/plugins/maven-metadata.xml HTTP/1.1 404 The server has not found anything matching the request URI Date: Thu, 31 Jan 2013 16:46:41 GMT Server: Noelios-Restlet-Engine/1.1.6-SONATYPE-5348-V4 Vary: Accept-Charset,Accept-Encoding,Accept-Language,Accept Content-Type: text/html;charset=ISO-8859-1 Cache-Control: must-revalidate,no-cache,no-store Content-Length: 1533 Set-Cookie: rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Wed, 30-Jan-2013 16:46:41 GMT so maven see 404 and doesn't care of that. Can you cleanup your local repo ? rm -rf /home/gilberto.andrade/.m2/repository/org/sonatype/plugins rm -rf /home/gilberto.andrade/.m2/repository/org/apache/tomcat then try again with -U
        Hide
        Gilberto C Andrade added a comment -

        gilberto.andrade@A37710:~/dev/netbeans-config/reca$ mvn clean tomcat7:run -U
        [INFO] Scanning for projects...
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml
        [WARNING] Checksum validation failed, expected <!DOCTYPE but is 991a6c7b11f614906b14932cd6da49132ff2d5fa for http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml
        [WARNING] Checksum validation failed, expected <!DOCTYPE but is 991a6c7b11f614906b14932cd6da49132ff2d5fa for http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml (408 B at 0.3 KB/sec)
        [WARNING] The metadata /home/gilberto.andrade/.m2/repository/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/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)
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml
        [WARNING] Checksum validation failed, expected <!DOCTYPE but is 991a6c7b11f614906b14932cd6da49132ff2d5fa for http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml
        [WARNING] Checksum validation failed, expected <!DOCTYPE but is 991a6c7b11f614906b14932cd6da49132ff2d5fa for http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml (408 B at 0.4 KB/sec)
        [WARNING] The metadata /home/gilberto.andrade/.m2/repository/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/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
        [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
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/sonatype/plugins/maven-metadata.xml
        Downloading: http://repository.apache.org/content/repositories/snapshots/com/ning/maven/plugins/maven-metadata.xml
        Downloading: http://10.121.0.20/nexus/content/groups/public/org/sonatype/plugins/maven-metadata.xml
        Downloading: http://10.121.0.20/nexus/content/groups/public/com/ning/maven/plugins/maven-metadata.xml
        [WARNING] Checksum validation failed, expected <!DOCTYPE but is 42b6a1762e310b461c052c6f0485e27ee726cafc for http://repository.apache.org/content/repositories/snapshots/org/sonatype/plugins/maven-metadata.xml
        [WARNING] Checksum validation failed, expected <!DOCTYPE but is 8e05b41e2e84155240f72e1a29f0dcab2d655b31 for http://repository.apache.org/content/repositories/snapshots/com/ning/maven/plugins/maven-metadata.xml
        [WARNING] Checksum validation failed, expected <!DOCTYPE but is 42b6a1762e310b461c052c6f0485e27ee726cafc for http://repository.apache.org/content/repositories/snapshots/org/sonatype/plugins/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/sonatype/plugins/maven-metadata.xml (371 B at 0.4 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/maven-metadata.xml
        [WARNING] Checksum validation failed, expected <!DOCTYPE but is 8e05b41e2e84155240f72e1a29f0dcab2d655b31 for http://repository.apache.org/content/repositories/snapshots/com/ning/maven/plugins/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/com/ning/maven/plugins/maven-metadata.xml (373 B at 0.3 KB/sec)
        Downloading: http://10.121.0.20/nexus/content/groups/public/org/apache/tomcat/maven/maven-metadata.xml
        [WARNING] Checksum validation failed, expected <!DOCTYPE but is ed7e2a3c7cec5a1e645379ac9e14f80220fc73ab for http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/maven-metadata.xml
        [WARNING] Checksum validation failed, expected <!DOCTYPE but is ed7e2a3c7cec5a1e645379ac9e14f80220fc73ab for http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/maven-metadata.xml (374 B at 0.4 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-metadata.xml
        [WARNING] Checksum validation failed, expected <!DOCTYPE but is be141f6099c09fce32d9695eaf8e82c93f0a69d8 for http://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-metadata.xml
        [WARNING] Checksum validation failed, expected <!DOCTYPE but is be141f6099c09fce32d9695eaf8e82c93f0a69d8 for http://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-metadata.xml (375 B at 0.4 KB/sec)
        Downloading: http://10.121.0.20/nexus/content/groups/public/org/apache/maven/plugins/maven-metadata.xml
        Downloaded: http://10.121.0.20/nexus/content/groups/public/org/sonatype/plugins/maven-metadata.xml (5 KB at 0.5 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/codehaus/mojo/maven-metadata.xml
        [WARNING] Checksum validation failed, expected <!DOCTYPE but is 3ce2d306c8170ffe1d7741121a9295c3163824c5 for http://repository.apache.org/content/repositories/snapshots/org/codehaus/mojo/maven-metadata.xml
        [WARNING] Checksum validation failed, expected <!DOCTYPE but is 3ce2d306c8170ffe1d7741121a9295c3163824c5 for http://repository.apache.org/content/repositories/snapshots/org/codehaus/mojo/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/codehaus/mojo/maven-metadata.xml (368 B at 0.3 KB/sec)
        Downloading: http://10.121.0.20/nexus/content/groups/public/org/codehaus/mojo/maven-metadata.xml
        Downloaded: http://10.121.0.20/nexus/content/groups/public/org/apache/tomcat/maven/maven-metadata.xml (753 B at 0.0 KB/sec)
        Downloaded: http://10.121.0.20/nexus/content/groups/public/org/apache/maven/plugins/maven-metadata.xml (12 KB at 0.7 KB/sec)
        Downloaded: http://10.121.0.20/nexus/content/groups/public/com/ning/maven/plugins/maven-metadata.xml (616 B at 0.0 KB/sec)
        Downloaded: http://10.121.0.20/nexus/content/groups/public/org/codehaus/mojo/maven-metadata.xml (27 KB at 0.6 KB/sec)
        [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: 1:00.526s
        [INFO] Finished at: Thu Jan 31 13:58:47 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
        gilberto.andrade@A37710:~/dev/netbeans-config/reca$

        Show
        Gilberto C Andrade added a comment - gilberto.andrade@A37710:~/dev/netbeans-config/reca$ mvn clean tomcat7:run -U [INFO] Scanning for projects... Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml [WARNING] Checksum validation failed, expected <!DOCTYPE but is 991a6c7b11f614906b14932cd6da49132ff2d5fa for http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml [WARNING] Checksum validation failed, expected <!DOCTYPE but is 991a6c7b11f614906b14932cd6da49132ff2d5fa for http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml (408 B at 0.3 KB/sec) [WARNING] The metadata /home/gilberto.andrade/.m2/repository/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/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) Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml [WARNING] Checksum validation failed, expected <!DOCTYPE but is 991a6c7b11f614906b14932cd6da49132ff2d5fa for http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml [WARNING] Checksum validation failed, expected <!DOCTYPE but is 991a6c7b11f614906b14932cd6da49132ff2d5fa for http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml (408 B at 0.4 KB/sec) [WARNING] The metadata /home/gilberto.andrade/.m2/repository/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/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 [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 Downloading: http://repository.apache.org/content/repositories/snapshots/org/sonatype/plugins/maven-metadata.xml Downloading: http://repository.apache.org/content/repositories/snapshots/com/ning/maven/plugins/maven-metadata.xml Downloading: http://10.121.0.20/nexus/content/groups/public/org/sonatype/plugins/maven-metadata.xml Downloading: http://10.121.0.20/nexus/content/groups/public/com/ning/maven/plugins/maven-metadata.xml [WARNING] Checksum validation failed, expected <!DOCTYPE but is 42b6a1762e310b461c052c6f0485e27ee726cafc for http://repository.apache.org/content/repositories/snapshots/org/sonatype/plugins/maven-metadata.xml [WARNING] Checksum validation failed, expected <!DOCTYPE but is 8e05b41e2e84155240f72e1a29f0dcab2d655b31 for http://repository.apache.org/content/repositories/snapshots/com/ning/maven/plugins/maven-metadata.xml [WARNING] Checksum validation failed, expected <!DOCTYPE but is 42b6a1762e310b461c052c6f0485e27ee726cafc for http://repository.apache.org/content/repositories/snapshots/org/sonatype/plugins/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/org/sonatype/plugins/maven-metadata.xml (371 B at 0.4 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/maven-metadata.xml [WARNING] Checksum validation failed, expected <!DOCTYPE but is 8e05b41e2e84155240f72e1a29f0dcab2d655b31 for http://repository.apache.org/content/repositories/snapshots/com/ning/maven/plugins/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/com/ning/maven/plugins/maven-metadata.xml (373 B at 0.3 KB/sec) Downloading: http://10.121.0.20/nexus/content/groups/public/org/apache/tomcat/maven/maven-metadata.xml [WARNING] Checksum validation failed, expected <!DOCTYPE but is ed7e2a3c7cec5a1e645379ac9e14f80220fc73ab for http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/maven-metadata.xml [WARNING] Checksum validation failed, expected <!DOCTYPE but is ed7e2a3c7cec5a1e645379ac9e14f80220fc73ab for http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/maven-metadata.xml (374 B at 0.4 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-metadata.xml [WARNING] Checksum validation failed, expected <!DOCTYPE but is be141f6099c09fce32d9695eaf8e82c93f0a69d8 for http://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-metadata.xml [WARNING] Checksum validation failed, expected <!DOCTYPE but is be141f6099c09fce32d9695eaf8e82c93f0a69d8 for http://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-metadata.xml (375 B at 0.4 KB/sec) Downloading: http://10.121.0.20/nexus/content/groups/public/org/apache/maven/plugins/maven-metadata.xml Downloaded: http://10.121.0.20/nexus/content/groups/public/org/sonatype/plugins/maven-metadata.xml (5 KB at 0.5 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/org/codehaus/mojo/maven-metadata.xml [WARNING] Checksum validation failed, expected <!DOCTYPE but is 3ce2d306c8170ffe1d7741121a9295c3163824c5 for http://repository.apache.org/content/repositories/snapshots/org/codehaus/mojo/maven-metadata.xml [WARNING] Checksum validation failed, expected <!DOCTYPE but is 3ce2d306c8170ffe1d7741121a9295c3163824c5 for http://repository.apache.org/content/repositories/snapshots/org/codehaus/mojo/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/org/codehaus/mojo/maven-metadata.xml (368 B at 0.3 KB/sec) Downloading: http://10.121.0.20/nexus/content/groups/public/org/codehaus/mojo/maven-metadata.xml Downloaded: http://10.121.0.20/nexus/content/groups/public/org/apache/tomcat/maven/maven-metadata.xml (753 B at 0.0 KB/sec) Downloaded: http://10.121.0.20/nexus/content/groups/public/org/apache/maven/plugins/maven-metadata.xml (12 KB at 0.7 KB/sec) Downloaded: http://10.121.0.20/nexus/content/groups/public/com/ning/maven/plugins/maven-metadata.xml (616 B at 0.0 KB/sec) Downloaded: http://10.121.0.20/nexus/content/groups/public/org/codehaus/mojo/maven-metadata.xml (27 KB at 0.6 KB/sec) [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: 1:00.526s [INFO] Finished at: Thu Jan 31 13:58:47 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 gilberto.andrade@A37710:~/dev/netbeans-config/reca$
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        Please use https://repository.apache.org/content/repositories/snapshots (note it's httpS ) as maven 3.0.3 can have issues with following redirect and/or upgrade to maven 3.0.4

        Show
        Olivier Lamy (*$^¨%`£) added a comment - Please use https://repository.apache.org/content/repositories/snapshots (note it's httpS ) as maven 3.0.3 can have issues with following redirect and/or upgrade to maven 3.0.4
        Hide
        Gilberto C Andrade added a comment -

        I've update maven to 3.0.4. But ...
        It seems that the fix didn't no effect:

        gilberto.andrade@A37710:~/dev/netbeans-config/reca$ mvn clean tomcat7:run
        [INFO] Scanning for projects...
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml (790 B at 0.3 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-20130131.210909-32.pom
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-20130131.210909-32.pom (12 KB at 10.6 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml (827 B at 0.8 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat-maven-plugin/2.1-SNAPSHOT/tomcat-maven-plugin-2.1-20130131.210904-33.pom
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat-maven-plugin/2.1-SNAPSHOT/tomcat-maven-plugin-2.1-20130131.210904-33.pom (31 KB at 28.8 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-20130131.210909-32.jar
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-20130131.210909-32.jar (103 KB at 51.8 KB/sec)
        [INFO]
        [INFO] ------------------------------------------------------------------------
        [INFO] Building Recadastramento de Servidores Civis e Militares 1.0-SNAPSHOT
        [INFO] ------------------------------------------------------------------------
        [INFO]
        [INFO] — maven-clean-plugin:2.4.1:clean (default-clean) @ reca —
        [INFO] Deleting /home/gilberto.andrade/dev/netbeans-config/reca/target
        [INFO]
        [INFO] >>> tomcat7-maven-plugin:2.1-SNAPSHOT:run (default-cli) @ reca >>>
        [INFO]
        [INFO] — maven-resources-plugin:2.5:resources (default-resources) @ reca —
        [debug] execute contextualize
        [INFO] Using 'UTF-8' encoding to copy filtered resources.
        [INFO] Copying 7 resources
        [INFO] Copying 13 resources
        [INFO] Copying 1 resource to /home/gilberto.andrade/dev/netbeans-config/reca/target/reca/WEB-INF/
        [INFO] Copying 34 resources
        [INFO]
        [INFO] — maven-compiler-plugin:2.3.2:compile (default-compile) @ reca —
        [INFO] Compiling 99 source files to /home/gilberto.andrade/dev/netbeans-config/reca/target/reca/WEB-INF/classes
        [WARNING] bootstrap class path not set in conjunction with -source 1.5
        /home/gilberto.andrade/dev/netbeans-config/reca/src/main/java/br/gov/to/secad/seg/view/DeleteUser.java:[70,18] [deprecation] AttributeModifier(String,boolean,IModel<?>) in AttributeModifier has been deprecated
        [WARNING] /home/gilberto.andrade/dev/netbeans-config/reca/src/main/java/br/gov/to/secad/seg/view/DeleteUser.java:[90,17] [deprecation] AttributeModifier(String,boolean,IModel<?>) in AttributeModifier has been deprecated
        [WARNING] /home/gilberto.andrade/dev/netbeans-config/reca/src/main/java/br/gov/to/secad/seg/view/FindByServidor.java:[80,22] [deprecation] addComponent(Component...) in AjaxRequestTarget has been deprecated
        [WARNING] /home/gilberto.andrade/dev/netbeans-config/reca/src/main/java/br/gov/to/secad/seg/view/FindByServidor.java:[104,22] [deprecation] addComponent(Component...) in AjaxRequestTarget has been deprecated
        [WARNING] /home/gilberto.andrade/dev/netbeans-config/reca/src/main/java/br/gov/to/secad/seg/view/FindByServidor.java:[105,22] [deprecation] addComponent(Component...) in AjaxRequestTarget has been deprecated
        [WARNING] /home/gilberto.andrade/dev/netbeans-config/reca/src/main/java/br/gov/to/secad/seg/view/FindByServidor.java:[107,26] [deprecation] addComponent(Component...) in AjaxRequestTarget has been deprecated
        [WARNING] /home/gilberto.andrade/dev/netbeans-config/reca/src/main/java/br/gov/to/secad/seg/view/FindByServidor.java:[114,22] [deprecation] addComponent(Component...) in AjaxRequestTarget has been deprecated
        [INFO]
        [INFO] — jasperreports-maven-plugin:1.0-beta-2:compile-reports (jrc) @ reca —
        Downloading: http://repository.apache.org/content/repositories/snapshots/commons-beanutils/commons-beanutils/maven-metadata.xml
        Downloading: http://snapshots.repository.codehaus.org/commons-beanutils/commons-beanutils/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/commons-beanutils/commons-beanutils/maven-metadata.xml (330 B at 0.3 KB/sec)
        Downloading: http://snapshots.repository.codehaus.org/commons-beanutils/commons-beanutils/1.8.4-SNAPSHOT/maven-metadata.xml
        Downloading: http://repository.apache.org/content/repositories/snapshots/commons-beanutils/commons-beanutils/1.8.4-SNAPSHOT/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/commons-beanutils/commons-beanutils/1.8.4-SNAPSHOT/maven-metadata.xml (2 KB at 1.0 KB/sec)
        Downloading: http://snapshots.repository.codehaus.org/commons-collections/commons-collections/maven-metadata.xml
        Downloading: http://repository.apache.org/content/repositories/snapshots/commons-collections/commons-collections/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/commons-collections/commons-collections/maven-metadata.xml (330 B at 0.3 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/commons-collections/commons-collections/4.0-SNAPSHOT/maven-metadata.xml
        Downloading: http://snapshots.repository.codehaus.org/commons-collections/commons-collections/4.0-SNAPSHOT/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/commons-collections/commons-collections/4.0-SNAPSHOT/maven-metadata.xml (3 KB at 2.4 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/commons-digester/commons-digester/maven-metadata.xml
        Downloading: http://snapshots.repository.codehaus.org/commons-digester/commons-digester/maven-metadata.xml
        Downloading: http://snapshots.repository.codehaus.org/commons-logging/commons-logging/maven-metadata.xml
        Downloading: http://repository.apache.org/content/repositories/snapshots/commons-logging/commons-logging/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/commons-logging/commons-logging/maven-metadata.xml (364 B at 0.2 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/commons-logging/commons-logging/1.1.2-SNAPSHOT/maven-metadata.xml
        Downloading: http://snapshots.repository.codehaus.org/commons-logging/commons-logging/1.1.2-SNAPSHOT/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/commons-logging/commons-logging/1.1.2-SNAPSHOT/maven-metadata.xml (3 KB at 2.0 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/itext/itext/maven-metadata.xml
        Downloading: http://snapshots.repository.codehaus.org/itext/itext/maven-metadata.xml
        Downloading: http://snapshots.repository.codehaus.org/jfree/jcommon/maven-metadata.xml
        Downloading: http://repository.apache.org/content/repositories/snapshots/jfree/jcommon/maven-metadata.xml
        Downloading: http://snapshots.repository.codehaus.org/jfree/jfreechart/maven-metadata.xml
        Downloading: http://repository.apache.org/content/repositories/snapshots/jfree/jfreechart/maven-metadata.xml
        Downloading: http://repository.apache.org/content/repositories/snapshots/eclipse/jdtcore/maven-metadata.xml
        Downloading: http://snapshots.repository.codehaus.org/eclipse/jdtcore/maven-metadata.xml
        [INFO] Nothing to compile - all Jasper reports are up to date
        [INFO]
        [INFO] <<< tomcat7-maven-plugin:2.1-SNAPSHOT:run (default-cli) @ reca <<<
        [INFO]
        [INFO] — tomcat7-maven-plugin:2.1-SNAPSHOT:run (default-cli) @ reca —
        Downloading: http://10.121.0.20/nexus/content/groups/public/org/eclipse/jdt/core/compiler/ecj/4.2.1/ecj-4.2.1.pom
        Downloaded: http://10.121.0.20/nexus/content/groups/public/org/eclipse/jdt/core/compiler/ecj/4.2.1/ecj-4.2.1.pom (2 KB at 0.1 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/common-tomcat-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/common-tomcat-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml (796 B at 0.5 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/common-tomcat-maven-plugin/2.1-SNAPSHOT/common-tomcat-maven-plugin-2.1-20130131.210902-33.pom
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/common-tomcat-maven-plugin/2.1-SNAPSHOT/common-tomcat-maven-plugin-2.1-20130131.210902-33.pom (5 KB at 4.2 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-war-runner/2.1-SNAPSHOT/maven-metadata.xml
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-war-runner/2.1-SNAPSHOT/maven-metadata.xml (788 B at 0.7 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-war-runner/2.1-SNAPSHOT/tomcat7-war-runner-2.1-20130131.210910-33.pom
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-war-runner/2.1-SNAPSHOT/tomcat7-war-runner-2.1-20130131.210910-33.pom (4 KB at 3.5 KB/sec)
        Downloading: http://10.121.0.20/nexus/content/groups/public/org/eclipse/jdt/core/compiler/ecj/4.2.1/ecj-4.2.1.jar
        Downloaded: http://10.121.0.20/nexus/content/groups/public/org/eclipse/jdt/core/compiler/ecj/4.2.1/ecj-4.2.1.jar (1755 KB at 77.2 KB/sec)
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/common-tomcat-maven-plugin/2.1-SNAPSHOT/common-tomcat-maven-plugin-2.1-20130131.210902-33.jar
        Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-war-runner/2.1-SNAPSHOT/tomcat7-war-runner-2.1-20130131.210910-33.jar
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-war-runner/2.1-SNAPSHOT/tomcat7-war-runner-2.1-20130131.210910-33.jar (24 KB at 12.1 KB/sec)
        Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/common-tomcat-maven-plugin/2.1-SNAPSHOT/common-tomcat-maven-plugin-2.1-20130131.210902-33.jar (38 KB at 17.0 KB/sec)
        [INFO] Running war on http://localhost:8080/reca
        [INFO] Creating Tomcat server configuration at /home/gilberto.andrade/dev/netbeans-config/reca/target/tomcat
        [INFO] create webapp with contextPath: /reca
        Feb 01, 2013 11:43:15 AM org.apache.coyote.AbstractProtocol init
        INFO: Initializing ProtocolHandler ["http-bio-8080"]
        Feb 01, 2013 11:43:15 AM org.apache.catalina.core.StandardService startInternal
        INFO: Starting service Tomcat
        Feb 01, 2013 11:43:15 AM org.apache.catalina.core.StandardEngine startInternal
        INFO: Starting Servlet Engine: Apache Tomcat/7.0.35
        Feb 01, 2013 11:43:18 AM org.apache.catalina.core.ApplicationContext log
        INFO: Initializing Spring root WebApplicationContext
        11:43:20,423 INFO WebXmlFile:243 - web.xml: url mapping found for filter with name RECA: [/*]
        Feb 01, 2013 11:43:20 AM org.apache.catalina.core.StandardContext filterStart
        SEVERE: Exception starting filter RECA
        java.lang.IllegalArgumentException: Invalid configuration type: '$

        {wicket.MODE}

        '. Must be "development" or "deployment".
        at org.apache.wicket.protocol.http.WebApplication.getConfigurationType(WebApplication.java:667)
        at org.apache.wicket.Application.configure(Application.java:297)
        at org.apache.wicket.protocol.http.WebApplication.internalInit(WebApplication.java:610)
        at org.apache.wicket.Application.initApplication(Application.java:804)
        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:281)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5312)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)

        Feb 01, 2013 11:43:20 AM org.apache.catalina.core.StandardContext startInternal
        SEVERE: Error filterStart
        Feb 01, 2013 11:43:20 AM org.apache.catalina.core.StandardContext startInternal
        SEVERE: Context [/reca] startup failed due to previous errors
        Feb 01, 2013 11:43:20 AM org.apache.catalina.core.ApplicationContext log
        INFO: Closing Spring root WebApplicationContext
        Feb 01, 2013 11:43:20 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
        SEVERE: The web application [/reca] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
        Feb 01, 2013 11:43:20 AM org.apache.coyote.AbstractProtocol start
        INFO: Starting ProtocolHandler ["http-bio-8080"]

        Show
        Gilberto C Andrade added a comment - I've update maven to 3.0.4. But ... It seems that the fix didn't no effect: gilberto.andrade@A37710:~/dev/netbeans-config/reca$ mvn clean tomcat7:run [INFO] Scanning for projects... Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml (790 B at 0.3 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-20130131.210909-32.pom Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-20130131.210909-32.pom (12 KB at 10.6 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml (827 B at 0.8 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat-maven-plugin/2.1-SNAPSHOT/tomcat-maven-plugin-2.1-20130131.210904-33.pom Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat-maven-plugin/2.1-SNAPSHOT/tomcat-maven-plugin-2.1-20130131.210904-33.pom (31 KB at 28.8 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-20130131.210909-32.jar Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.1-SNAPSHOT/tomcat7-maven-plugin-2.1-20130131.210909-32.jar (103 KB at 51.8 KB/sec) [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Recadastramento de Servidores Civis e Militares 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-clean-plugin:2.4.1:clean (default-clean) @ reca — [INFO] Deleting /home/gilberto.andrade/dev/netbeans-config/reca/target [INFO] [INFO] >>> tomcat7-maven-plugin:2.1-SNAPSHOT:run (default-cli) @ reca >>> [INFO] [INFO] — maven-resources-plugin:2.5:resources (default-resources) @ reca — [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 7 resources [INFO] Copying 13 resources [INFO] Copying 1 resource to /home/gilberto.andrade/dev/netbeans-config/reca/target/reca/WEB-INF/ [INFO] Copying 34 resources [INFO] [INFO] — maven-compiler-plugin:2.3.2:compile (default-compile) @ reca — [INFO] Compiling 99 source files to /home/gilberto.andrade/dev/netbeans-config/reca/target/reca/WEB-INF/classes [WARNING] bootstrap class path not set in conjunction with -source 1.5 /home/gilberto.andrade/dev/netbeans-config/reca/src/main/java/br/gov/to/secad/seg/view/DeleteUser.java: [70,18] [deprecation] AttributeModifier(String,boolean,IModel<?>) in AttributeModifier has been deprecated [WARNING] /home/gilberto.andrade/dev/netbeans-config/reca/src/main/java/br/gov/to/secad/seg/view/DeleteUser.java: [90,17] [deprecation] AttributeModifier(String,boolean,IModel<?>) in AttributeModifier has been deprecated [WARNING] /home/gilberto.andrade/dev/netbeans-config/reca/src/main/java/br/gov/to/secad/seg/view/FindByServidor.java: [80,22] [deprecation] addComponent(Component...) in AjaxRequestTarget has been deprecated [WARNING] /home/gilberto.andrade/dev/netbeans-config/reca/src/main/java/br/gov/to/secad/seg/view/FindByServidor.java: [104,22] [deprecation] addComponent(Component...) in AjaxRequestTarget has been deprecated [WARNING] /home/gilberto.andrade/dev/netbeans-config/reca/src/main/java/br/gov/to/secad/seg/view/FindByServidor.java: [105,22] [deprecation] addComponent(Component...) in AjaxRequestTarget has been deprecated [WARNING] /home/gilberto.andrade/dev/netbeans-config/reca/src/main/java/br/gov/to/secad/seg/view/FindByServidor.java: [107,26] [deprecation] addComponent(Component...) in AjaxRequestTarget has been deprecated [WARNING] /home/gilberto.andrade/dev/netbeans-config/reca/src/main/java/br/gov/to/secad/seg/view/FindByServidor.java: [114,22] [deprecation] addComponent(Component...) in AjaxRequestTarget has been deprecated [INFO] [INFO] — jasperreports-maven-plugin:1.0-beta-2:compile-reports (jrc) @ reca — Downloading: http://repository.apache.org/content/repositories/snapshots/commons-beanutils/commons-beanutils/maven-metadata.xml Downloading: http://snapshots.repository.codehaus.org/commons-beanutils/commons-beanutils/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/commons-beanutils/commons-beanutils/maven-metadata.xml (330 B at 0.3 KB/sec) Downloading: http://snapshots.repository.codehaus.org/commons-beanutils/commons-beanutils/1.8.4-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/content/repositories/snapshots/commons-beanutils/commons-beanutils/1.8.4-SNAPSHOT/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/commons-beanutils/commons-beanutils/1.8.4-SNAPSHOT/maven-metadata.xml (2 KB at 1.0 KB/sec) Downloading: http://snapshots.repository.codehaus.org/commons-collections/commons-collections/maven-metadata.xml Downloading: http://repository.apache.org/content/repositories/snapshots/commons-collections/commons-collections/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/commons-collections/commons-collections/maven-metadata.xml (330 B at 0.3 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/commons-collections/commons-collections/4.0-SNAPSHOT/maven-metadata.xml Downloading: http://snapshots.repository.codehaus.org/commons-collections/commons-collections/4.0-SNAPSHOT/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/commons-collections/commons-collections/4.0-SNAPSHOT/maven-metadata.xml (3 KB at 2.4 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/commons-digester/commons-digester/maven-metadata.xml Downloading: http://snapshots.repository.codehaus.org/commons-digester/commons-digester/maven-metadata.xml Downloading: http://snapshots.repository.codehaus.org/commons-logging/commons-logging/maven-metadata.xml Downloading: http://repository.apache.org/content/repositories/snapshots/commons-logging/commons-logging/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/commons-logging/commons-logging/maven-metadata.xml (364 B at 0.2 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/commons-logging/commons-logging/1.1.2-SNAPSHOT/maven-metadata.xml Downloading: http://snapshots.repository.codehaus.org/commons-logging/commons-logging/1.1.2-SNAPSHOT/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/commons-logging/commons-logging/1.1.2-SNAPSHOT/maven-metadata.xml (3 KB at 2.0 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/itext/itext/maven-metadata.xml Downloading: http://snapshots.repository.codehaus.org/itext/itext/maven-metadata.xml Downloading: http://snapshots.repository.codehaus.org/jfree/jcommon/maven-metadata.xml Downloading: http://repository.apache.org/content/repositories/snapshots/jfree/jcommon/maven-metadata.xml Downloading: http://snapshots.repository.codehaus.org/jfree/jfreechart/maven-metadata.xml Downloading: http://repository.apache.org/content/repositories/snapshots/jfree/jfreechart/maven-metadata.xml Downloading: http://repository.apache.org/content/repositories/snapshots/eclipse/jdtcore/maven-metadata.xml Downloading: http://snapshots.repository.codehaus.org/eclipse/jdtcore/maven-metadata.xml [INFO] Nothing to compile - all Jasper reports are up to date [INFO] [INFO] <<< tomcat7-maven-plugin:2.1-SNAPSHOT:run (default-cli) @ reca <<< [INFO] [INFO] — tomcat7-maven-plugin:2.1-SNAPSHOT:run (default-cli) @ reca — Downloading: http://10.121.0.20/nexus/content/groups/public/org/eclipse/jdt/core/compiler/ecj/4.2.1/ecj-4.2.1.pom Downloaded: http://10.121.0.20/nexus/content/groups/public/org/eclipse/jdt/core/compiler/ecj/4.2.1/ecj-4.2.1.pom (2 KB at 0.1 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/common-tomcat-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/common-tomcat-maven-plugin/2.1-SNAPSHOT/maven-metadata.xml (796 B at 0.5 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/common-tomcat-maven-plugin/2.1-SNAPSHOT/common-tomcat-maven-plugin-2.1-20130131.210902-33.pom Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/common-tomcat-maven-plugin/2.1-SNAPSHOT/common-tomcat-maven-plugin-2.1-20130131.210902-33.pom (5 KB at 4.2 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-war-runner/2.1-SNAPSHOT/maven-metadata.xml Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-war-runner/2.1-SNAPSHOT/maven-metadata.xml (788 B at 0.7 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-war-runner/2.1-SNAPSHOT/tomcat7-war-runner-2.1-20130131.210910-33.pom Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-war-runner/2.1-SNAPSHOT/tomcat7-war-runner-2.1-20130131.210910-33.pom (4 KB at 3.5 KB/sec) Downloading: http://10.121.0.20/nexus/content/groups/public/org/eclipse/jdt/core/compiler/ecj/4.2.1/ecj-4.2.1.jar Downloaded: http://10.121.0.20/nexus/content/groups/public/org/eclipse/jdt/core/compiler/ecj/4.2.1/ecj-4.2.1.jar (1755 KB at 77.2 KB/sec) Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/common-tomcat-maven-plugin/2.1-SNAPSHOT/common-tomcat-maven-plugin-2.1-20130131.210902-33.jar Downloading: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-war-runner/2.1-SNAPSHOT/tomcat7-war-runner-2.1-20130131.210910-33.jar Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-war-runner/2.1-SNAPSHOT/tomcat7-war-runner-2.1-20130131.210910-33.jar (24 KB at 12.1 KB/sec) Downloaded: http://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/common-tomcat-maven-plugin/2.1-SNAPSHOT/common-tomcat-maven-plugin-2.1-20130131.210902-33.jar (38 KB at 17.0 KB/sec) [INFO] Running war on http://localhost:8080/reca [INFO] Creating Tomcat server configuration at /home/gilberto.andrade/dev/netbeans-config/reca/target/tomcat [INFO] create webapp with contextPath: /reca Feb 01, 2013 11:43:15 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] Feb 01, 2013 11:43:15 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service Tomcat Feb 01, 2013 11:43:15 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.35 Feb 01, 2013 11:43:18 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext 11:43:20,423 INFO WebXmlFile:243 - web.xml: url mapping found for filter with name RECA: [/*] Feb 01, 2013 11:43:20 AM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter RECA java.lang.IllegalArgumentException: Invalid configuration type: '$ {wicket.MODE} '. Must be "development" or "deployment". at org.apache.wicket.protocol.http.WebApplication.getConfigurationType(WebApplication.java:667) at org.apache.wicket.Application.configure(Application.java:297) at org.apache.wicket.protocol.http.WebApplication.internalInit(WebApplication.java:610) at org.apache.wicket.Application.initApplication(Application.java:804) 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:281) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5312) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Feb 01, 2013 11:43:20 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Error filterStart Feb 01, 2013 11:43:20 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [/reca] startup failed due to previous errors Feb 01, 2013 11:43:20 AM org.apache.catalina.core.ApplicationContext log INFO: Closing Spring root WebApplicationContext Feb 01, 2013 11:43:20 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [/reca] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Feb 01, 2013 11:43:20 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"]
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        please provide a sample project to reproduce.

        Show
        Olivier Lamy (*$^¨%`£) added a comment - please provide a sample project to reproduce.
        Hide
        Gilberto C Andrade added a comment -

        Sample maven project

        Show
        Gilberto C Andrade added a comment - Sample maven project
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        Thanks.
        But I understand more your trouble now.
        tomcatWebXml field is to override the usual global web.xml used by tomcat (usually located in $CATALINA_HOME/conf/web.xml)
        See in target/tomcat/conf/web.xml
        But what you can do to have interpolations of src/main/webapp/WEB-INF/web.xml is something like that:

                    <plugin>
                        <groupId>org.apache.tomcat.maven</groupId>
                        <artifactId>tomcat7-maven-plugin</artifactId>
                        <version>2.1-SNAPSHOT</version>
                        <configuration> 
                          ...
                          <systemProperties>
                            <wicket.MODE>${wicket.MODE}</wicket.MODE>
                          </systemProperties>
                          ...
                        </configuration> 
                    </plugin>
        
        Show
        Olivier Lamy (*$^¨%`£) added a comment - Thanks. But I understand more your trouble now. tomcatWebXml field is to override the usual global web.xml used by tomcat (usually located in $CATALINA_HOME/conf/web.xml) See in target/tomcat/conf/web.xml But what you can do to have interpolations of src/main/webapp/WEB-INF/web.xml is something like that: <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.1-SNAPSHOT</version> <configuration> ... <systemProperties> <wicket.MODE>${wicket.MODE}</wicket.MODE> </systemProperties> ... </configuration> </plugin>
        Hide
        Gilberto C Andrade added a comment -

        Hi
        Just one question: why tomcatWebXml field is used to override the usual global one if I'm using an embedded Tomcat server?
        Shouldn't, thus, exist the embeddedTomcatWebXml field as well?
        Regards

        Show
        Gilberto C Andrade added a comment - Hi Just one question: why tomcatWebXml field is used to override the usual global one if I'm using an embedded Tomcat server? Shouldn't, thus, exist the embeddedTomcatWebXml field as well? Regards

          People

          • Assignee:
            Olivier Lamy (*$^¨%`£)
            Reporter:
            Gilberto C Andrade
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development