Our project uses Cruise Control to build and hot deploy a web application on a remote server (via FTP) under Tomcat control as a .war file. Unfortunately, hot deployments do not work properly, which causes Tomcat to restart in response to each deployment. We would really like to do this automatically, like the assembly itself. Is there an easy way to do this?
Side note: both machines are running Windows (XP or server, I think).
Side Note 2: Performance is not a big deal. This is an integration field.
, - cron,
crontab -e
tomcat, , 1:30
30 1 * * * ./path_to_tamcat/bin/catalina.sh stop
2
32 1 * * * ./path_to_tamcat/bin/catalina.sh start
, .
tomcat.bat( .sh) bin, , java- tomcat , tomcats port - . server.xml conf. ant tomcat , .
tomcat Windows?
, .bat script, netstart netstop, .
, Tomcat. , . , , .
server.xml reloadable = "true".
, , WAR , Tomcat , .
, , :
" , , ."
, . , . , .
, . , , , , . , , .
, , Tomcat , .
, , , script WAR , , . Tomcat , , Tomcat .
:
tomcat ? , , "" ?
= ""
( ), WEB-INF/ WEB-INF/lib, , , , .
, Tomcat , , . : "java.lang.OutOfMemoryError: PermGen space"
, " ", /WEB-INF/lib, ( , mail.jar API JavaMail), Context antiResourceLocking true. , webapp /META-INF/context.xml:
/WEB-INF/lib
mail.jar
Context
antiResourceLocking
true
/META-INF/context.xml
<Context antiResourceLocking="true"> <!-- Your stuff here. --> </Context>
Source: https://habr.com/ru/post/1697229/More articles:xul: open local html file relative to "myapp.xul" in xul browser - javascriptSQL Query Help: converting dates in a non-trivial direction - dateCVS and Visual Studio 2008 - integration options - visual-studioAre there native compilers for functional programming languages - functional-programmingReduce the startup time of a .NET windows form application that has a network drive running - performanceЧто создает CMS с открытым исходным кодом: генерирует чистый xhtml, доступен для скинов с помощью css и имеет легкий редактор содержимого разметки? - language-agnosticAn automated way to detect tests that cannot fail are checked to get minmum code coverage? - build-automationСуществует ли модель трассировки лучей на Java, которая может быть адаптирована для использования в подводной акустике? - javaКак вы поддерживаете отдельные веб-сервисы для dev/stage/production - c#Is there any performance advantage with the "chaining" in .NET? - performanceAll Articles