Uploaded image for project: 'Apache Tomcat Maven Plugin'
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-211

The .war file is not extracted from executable war

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.3
    • tomcat7
    • None
    • Windows 7 64bit, Oracle JDK-1.7.0.11, Maven-2.2

    Description

      I create simple web-app project, build it by mvn clean package.

      Than I try to execute the created JAR, but the following exception was thrown:

      java -jar maven-tomcat-test-0.0.1-SNAPSHOT-war-exec.jar
      Exception in thread "main" java.io.FileNotFoundException: .extract\webapps\ctx\test.war (The system cannot find the path specified)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:165)
      at org.apache.tomcat.maven.runner.Tomcat7Runner.expand(Tomcat7Runner.java:680)
      at org.apache.tomcat.maven.runner.Tomcat7Runner.extract(Tomcat7Runner.java:555)
      at org.apache.tomcat.maven.runner.Tomcat7Runner.run(Tomcat7Runner.java:200)
      at org.apache.tomcat.maven.runner.Tomcat7RunnerCli.main(Tomcat7RunnerCli.java:204)

      When I look at ".extract\webapps\ctx\" , the folder is empty.

      Attachments

        1. maven-tomcat-test-0.0.1-SNAPSHOT-war-exec.jar
          8.44 MB
          Petr Novak
        2. maven-tomcat-test.zip
          3 kB
          Petr Novak

        Activity

          People

            olamy Olivier Lamy
            kek Petr Novak
            Votes:
            3 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: