maven - how to shutdown a tomcat created with tomcat7:exec-war -


i using exec-war goal of tomcat7-maven-plugin version 2.1 (not latest version 2.2 because of bug mtomcat-263 breaking goal) create jar artifact contains tomcat 7 deployed war of project. works fine. whole thing (server war) started this:

java -jar foo.jar 

https://tomcat.apache.org/maven-plugin-2.1/tomcat7-maven-plugin/exec-war-mojo.html

https://tomcat.apache.org/maven-plugin-2.1/executable-war-jar.html

now wondering how shutdown nicely. knows?

i have integrate cmd windows batch script.

is possible stop using regular tomcat? tried

java -classpath "bin/*" org.apache.catalina.startup.bootstrap stop 

but lead

java.net.connectexception: connection refused:  connect @ java.net.dualstackplainsocketimpl.connect0(native method) 


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -