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.xml
where 2 lines regardingwatchedresource
removed. context not setreloadable="true"
. - the tomcat server run within intellij idea (2016.3) this: "exploded" folder points target described above. , "server" tab this:
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
Post a Comment