Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSP changes are not reloading in Tomcat without restart

I have a Dynamic Web Java-Spring Project setup in Eclipse running with DCEVM (a Java virtual machine that allows code to be hotswapped into a web environment). I set this up with Eclipse. It works(!) as making changes to Java files automatically appear on browser refresh.

My question: how do I get the same behavior with my JSP files? When I edit these files in Eclipse they do not update in Tomcat. I currently run an ant task to copy them into my Tomcat directory, but was wondering if there was an alternative.

like image 560
IcedDante Avatar asked Oct 27 '25 09:10

IcedDante


1 Answers

Setting "antiResourceLocking" to "true" in the context file may prevent JSP to be reloaded by the Tomcat (Bugzilla 37668).

Try to remove this parameter.

btw: in you ide there should be also an option to "deploy on save" you jsp.

like image 99
kkk Avatar answered Oct 28 '25 23:10

kkk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!