2012/8/27 Sérgio <juger.on.n...@gmail.com>:
> Hi.
>
> I am trying to use the Tomcat Maven Plugin to create an executable jar file
> with an embedded Tomcat7, but I am having two issues when trying to do so.
>
> The first one, is that I am not getting how I can stop my executable jar. I
> want to run it in from a script (like the shutdown.sh/bat from tomcat). I
> was not able to find any documentation about that particular issue.
nope not supported.
>
> The second issue, is that when I run my executable jar it loads my webapp
> context twice (it tries because it will not be able to do it as I use a
> derby db, and it will give an error when trying to have the lock again). It
> creates a folder .extract, and the webapp works fine, but I do not want my
> context to be loaded twice. I am using the configurations I have found here
> http://tomcat.apache.org/maven-plugin-2/executable-war-jar.html .
>
> What am I missing here?
Do you have a sample project as I cannot reproduce.
What is the content of .extract/webapps

Did you try java- jar pathtoyourjar -resetExtract (or cleanup .extract
directory before) ?
>
> Info about the project:
>  - Maven project;
>  - pom.xml with packaging war using the build found here
> http://tomcat.apache.org/maven-plugin-2/executable-war-jar.html ;
>  - Running in Ubuntu 11.04;
>  - Using: <groupId>org.apache.tomcat.maven</groupId>
>                 <artifactId>tomcat7-maven-plugin</artifactId>
>                 <version>2.0-beta-1</version>
>
> Thanks in advance.
>
> Best regards,
> Sérgio Areias



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

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

Reply via email to