web deployment - Remote deploy to tomcat -
i deploy application (war) using maven remote tomcat (v7) preserving existing context.xml - or ok deploy context.xml war. think classic issue if want redeploy tomcat through manager performs undeploy , deploy sequentilly - undeploys context.xml side effect , application cannot start.
what tried:
- cargo different settings - no change
- 'autodeploy' = false - not work under tomcat 7
- restrict tomcat writing own config directory - throws error message , tomcat 7 not start
- putting every context information 1 context.xml.default - not delete context, unfortunately have applications use same key in different contexts different values :-)
- putting context configuration alternative path - outside ${catalina.base} - not make work
- build container (docker) , redeploy - working not option here
i'm thinking writing simple ssh script (stop-tomcat, copy-war, start-tomcat) or alternative manager script, first wanted ask before reinvent wheel. saw solutions using 'tomcat7-maven-plugin', heard works on local tomcat. not insist on getting full-fledged maven solution: if suggest solution using manager simple rest calls, can implement also, in maven.
so question splits 3 possible solutions (under tomcat7):
- to preserve context.xml through undeploy
- to deploy context.xml war
- to redeploy application without undeploy
do know reliable solution that?
at last came out not-nice-but-working solution running script which: - logs in tomcat machine - stops instance - cleanup webapps directory - download wars webapps directory - start instance
again: issue not exist in tomcat 6 , 8 :-)
Comments
Post a Comment