[
https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14035884#comment-14035884
]
Jared Hodge commented on MTOMCAT-263:
-------------------------------------
It looks to me like running java -jar target/bla-war-exec.jar creates a
.extract/ folder in the CURRENT directory. This is bad behavior to start with
(it should be in the directory of the jar or some specified location). This
doesn't fail much of the time because once the directory is created outside of
target/ it probably isn't going away. Here is how I'm working around this
issue:
mkdir target/.extract
java -jar target/bla-war-exec.jar -extractDirectory target/.extract
This seems to work (still working on other errors).
I get this issue with 2.2 (haven't used 2.3). I did not see it with 2.1. I'm
guessing you tried on 2.3 first and then 2.2 or you're working with snapshots
or 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
>
>
> 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.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]