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

Andrey Utkin commented on MTOMCAT-263:
--------------------------------------

Hi Olivier. It is my error. 
There was error in 2.2 at Tomcat7Runner.java:586: FATAL: impossible to create 
directories:.extract/webapps
As I can see now, you already fix it for 2.3 by "commit 1539920 "fix check of 
directory creation". My patch incorrectly touch other code and should be 
ignored.

With regard to the result of mkdirs(). There was cases in my experience where 
mkdirs() creates dirs but returns false. As I can remember it was on Windows... 
So, I just try to use exists() instead of mkdirs(). But becouse trunk (2.3) was 
already fixed, my patch magically "fix the problem") I should try 2.3 from 
trunk before trying to fix something.


> tomcat7:exec-war can't create .extract/webapps
> ----------------------------------------------
>
>                 Key: MTOMCAT-263
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-263
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1, 2.2
>            Reporter: jieryn
>             Fix For: 3.0
>
>         Attachments: MTOMCAT-263_1.patch
>
>
> bash$ java -jar target/app-1.0-SNAPSHOT-war-exec.jar
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to