[ 
https://issues.apache.org/jira/browse/MTOMCAT-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13834035#comment-13834035
 ] 

Alexander Pechersky commented on MTOMCAT-211:
---------------------------------------------

I'm still encountering the issue:

C:\temp\abc>java -jar abc-web-1.14-SNAPSHOT-exec-war.jar -X
use extractDirectory:.extract
populateWebAppWarPerContext warValue:abc.war|/abc
populateWebAppWarPerContext contextValue/warFileName:/abc/abc.war
webappWarPerContext entry key/value: /abc/abc.war
expand to file:.extract\webapps\abc.war
Exception in thread "main" java.lang.Exception: FATAL: impossible to create 
directories:.extract\webapps
        at 
org.apache.tomcat.maven.runner.Tomcat7Runner.extract(Tomcat7Runner.java:586)
        at 
org.apache.tomcat.maven.runner.Tomcat7Runner.run(Tomcat7Runner.java:204)
        at 
org.apache.tomcat.maven.runner.Tomcat7RunnerCli.main(Tomcat7RunnerCli.java:212)

> The .war file is not extracted from executable war
> --------------------------------------------------
>
>                 Key: MTOMCAT-211
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-211
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.2
>         Environment: Windows 7 64bit, Oracle JDK-1.7.0.11, Maven-2.2
>            Reporter: Petr Novak
>            Assignee: Olivier Lamy (*$^¨%`£)
>             Fix For: 2.2
>
>         Attachments: maven-tomcat-test-0.0.1-SNAPSHOT-war-exec.jar, 
> maven-tomcat-test.zip
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to