java - Tomcat reloading exploded war with spring-loaded -


there's alot of questions on different forums [1] [2] [3] topic none seem provide definitive answer. i've tried different combinations suggested in various posts have yet succeed.

my goal make compiled source code in standalone tomcat (8) reloadable - embedded tomcat reloads newly complied sources in e.g. spring-boot or grails. there few constraints need comply with:

  • no grails or spring-boot available
  • no maven or gradle available
  • the tomcat should read exploded war file external location

to keep things simple use simple jee app spring mvc poc before move on real deal. setup follows (for now):

  • exploded war builds directory target/exploded
  • tomcat setup default settings except context.xmlwhere 2 lines regarding watchedresource removed. context not set reloadable="true".
  • the tomcat server run within intellij idea (2016.3) this: tomcat run-config - deployment tab "exploded" folder points target described above. , "server" tab this: enter image description here

the server starts , app running fine. try change code, save it, , build new exploded war file. can see class files change - nothing reloaded in tomcat.

can please elaborate? approach possible - in contrary many posts suggest? how possible in embedded tomcat in e.g. grails?


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -