Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why do I have to restart Tomcat after recompiling a servlet to see changes?

0
Posted

Why do I have to restart Tomcat after recompiling a servlet to see changes?

0

By default, Tomcat assumes it is deployed on a “live” server – not a development environment. To keep performance high, Tomcat only loads a servlet into memory once – even after it has been updated. To turn off this behavior, edit the file at ~/Tomcat/conf/Catalina/localhost/ROOT.xml Look for the tag and add the attribute: reloadable=”true” This gives Tomcat the go-ahead to reload servlets that have been modified.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123