[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16155429#comment-16155429 ] Peter Rader commented on MTOMCAT-263: - mkdir .extract cd .extract mkdir webapps cd .. cp application.jar .extract/webapps/application.war > 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 >Assignee: Olivier Lamy (*$^¨%`£) > 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.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16155413#comment-16155413 ] Peter Rader commented on MTOMCAT-263: - h1. WORKAROUND This must work: {{mkdir .extract java -jar xxx-war-exec.jar Sep 06, 2017 4:12:06 PM org.apache.catalina.core.StandardContext setPath WARNUNG: A context path must either be an empty string or start with a '/'. The path [xxx] does not meet these criteria and has been changed to [/xxx] Sep 06, 2017 4:12:07 PM org.apache.coyote.AbstractProtocol init INFORMATION: Initializing ProtocolHandler ["http-bio-8080"] }} > 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 >Assignee: Olivier Lamy (*$^¨%`£) > 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.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15273631#comment-15273631 ] Olivier Lamy (*$^¨%`£) commented on MTOMCAT-263: Sorry guys I didn't have a lot of spare time recently. I will try in the next few weeks. [~monowai] I will sue those springboot folks as they have stolen my idea :-) Yup it looks this plugin is the ancestor of all the buzzy microservices :P > 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 >Assignee: Olivier Lamy (*$^¨%`£) > 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
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15273629#comment-15273629 ] Magnus Skoglund commented on MTOMCAT-263: - I am sorry to say, but I did a local fork, and a release, to use for myself. Had to skip the tests, since I do not understand them. Works fine with latest tomcat 7 version. > 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 >Assignee: Olivier Lamy (*$^¨%`£) > 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
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15272834#comment-15272834 ] Mike Holdsworth commented on MTOMCAT-263: - If you're still waiting on this plugin getting some love you're probably better off either taking a lead and [forking|https://github.com/apache/tomcat-maven-plugin/tree/trunk/tomcat7-war-runner ] it or moving on and reconsidering your deployment approach. Around 18 months after posting my question I switched to using SpringBoot. Took some time but easily one of the smarter moves I've made. Good luck > 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 >Assignee: Olivier Lamy (*$^¨%`£) > 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
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15272527#comment-15272527 ] Patrick Wiltrout commented on MTOMCAT-263: -- Olivier, I am also waiting on the 2.3 release, any timelines around that? > 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 >Assignee: Olivier Lamy (*$^¨%`£) > 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
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15221193#comment-15221193 ] Magnus Skoglund commented on MTOMCAT-263: - The 2.3-SNAPSHOT runs fine on Windows as well. There were problems building it, but -DskipTests made it. > 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 >Assignee: Olivier Lamy (*$^¨%`£) > 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
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15219761#comment-15219761 ] Sergio Fernández commented on MTOMCAT-263: -- Sorry, it actually works, so ignore the first line of my previous comment. The two questions remain valid. > 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 >Assignee: Olivier Lamy (*$^¨%`£) > 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
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15219736#comment-15219736 ] Sergio Fernández commented on MTOMCAT-263: -- I'm still getting the same issue with {{2.3-SNAPSHOT}} available in the ASF snapshot repo... So two questions: 1. When do you plan to have {{2.3}} out? 2. Is there any pre-release build available? > 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 >Assignee: Olivier Lamy (*$^¨%`£) > 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
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15126255#comment-15126255 ] Matthias Hryniszak commented on MTOMCAT-263: It's been quite a while since this issue has been reported and resolved. Are there any plans for the actual release of version post 2.2 that'd include it? > 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 >Assignee: Olivier Lamy (*$^¨%`£) > 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
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14159756#comment-14159756 ] Olivier Lamy (*$^¨%`£) commented on MTOMCAT-263: [~ciand7] I don't understand why you don't check anymore the result of dirWebapp.mkdirs() ?? 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
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14035935#comment-14035935 ] jieryn commented on MTOMCAT-263: First, the situation you are describing is not related to the original problem report. Second, I do not find your proposal to be compelling or good. The current behavior seems to me to be the right mechanism, it is more in line with existing norms. Furthermore, even if your proposal offered something advantageous, to change the default behavior about this critical aspect would be both wrong and a serious regression bug. 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14035993#comment-14035993 ] Jared Hodge commented on MTOMCAT-263: - The situation I'm describing is exactly the same as the original post is describing. I got the same error messages when I used the 2.2 version of the plugin. I was trying to add further clarity on the existing issue by pointing out that the .extract directory is getting created in the basedir of the maven build, and thus not being deleted with mvn clean and therefore possibly not being reported accurately. The bug only occurs when the .extract directory doesn't exist, but it does after the first run of the plugin, so works the second time around. I realize that changing the default behavior is not part of this issue, and wasn't suggesting it, but it is bad behavior from the maven perspective. It's bad design to assume you can write to the current directory, regardless. How is blasting temporary stuff outside of the target subdirectory in line with existing norms? The maven way is to keep temporary files in target and everything else should be managed from version control - not created automatically. Sorry, I expect maven plugins to follow maven patterns... 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14036011#comment-14036011 ] jieryn commented on MTOMCAT-263: I am the original author of the problem report, and I am also reading it again now. I would encourage you to also please read the full chain, because what you are describing is not the original problem. The directories are in fact being created, and in the correct location. Your complaint about the result from Java command is neither related nor consequence of the fact that an Apache Maven command built the executable WAR. This isn't the tomcat[67]-maven-plugin that is creating those directories, so your argument about it not being the Maven Way is inaccurate at best. Please create a separate issue if you want a different behavior for where the exec-war built executable WAR performs its extraction. This is not the appropriate place for that request. 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14036058#comment-14036058 ] Jared Hodge commented on MTOMCAT-263: - Did I not say I realize that changing the default behavior is not part of this issue, and wasn't suggesting it? Good grief, I'm trying to provide a little extra information and you seem intent on having an argument. My point is that you can manually create the directory to get around the issue, and that people should be aware that this is created in the current directory by default. Thus some people may get the error once and not see it again because they don't realize they have a temporary directory in their basedir because it's hidden. It sounds like you already know this, but I'm not certain everyone coming across this issue will. Explicitly using -extractDirectory is a better way to run this in this case, and manually creating the directory is enough to make it work, which is potentially helpful info for the maintainers. 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14036118#comment-14036118 ] jieryn commented on MTOMCAT-263: As I already stated, the directories ARE created. Manually creating them does not change the issue. Please create a separate ticket if you're seeing some other behavior that is a bug. Your description of the problem simply does not match what has already been reported in this ticket. Please create a separate ticket if you want to change the default behavior for extraction. I am not looking to have a fight, but you are really wasting my time polluting this ticket with lots of other unrelated information. Kudos. 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14036158#comment-14036158 ] Jared Hodge commented on MTOMCAT-263: - I'm getting the exact same error message and stack trace you are when I don't have the .extract directory there beforehand, so how could this be a separate issue? I know the directories ARE created, but manually creating the .extract directory BEFORE running the command causes the error to not happen for me. You can just try mkdir .extract and then java -jar target/app-1.0-SNAPSHOT-war-exec.jar. I do NOT get the error when I do this. It's also interesting that Mike Holdsworth is reporting issues with 2.3 (which I don't even see in the maven central repository), and not with 2.2. I am seeing this with 2.2, but not 2.1. Maybe instead of wasting time arguing, you could check which versions you see the issue with and also if creating the .extract directory manually is enough to make the issue go away for you. 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14036339#comment-14036339 ] jieryn commented on MTOMCAT-263: I've already put exactly all of that information in the ticket. Thanks. 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13991661#comment-13991661 ] Mike Holdsworth commented on MTOMCAT-263: - Works correctly in 2.2 and fails in 2.3 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 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13991661#comment-13991661 ] Mike Holdsworth commented on MTOMCAT-263: - Works correctly in 2.2 and fails in 2.3 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 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[jira] [Commented] (MTOMCAT-263) tomcat7:exec-war can't create .extract/webapps
[ https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13931922#comment-13931922 ] jieryn commented on MTOMCAT-263: Weirdly, that .extract/webapps directory is in fact created.. 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 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org