It seems to be impossible to prevent application from reloading on a class file change when "Serve modules without publishing" is enabled. I have "Never publish automatically" selected in Server configuration, but every time I modify a class file (not a JSP - with JSP changes all is OK), my web app gets restarted.

After some digging around I found that changing <Context .. reloadable="true" to false in server.xml stops the reloading.

But how do I tell WTP to publish applications with reloadable set to false? It seems to be always publishing with reloadable="true", regardless of my publishing preferences...

2

There are 2 best solutions below

2
On BEST ANSWER

Going to answer my own question. Just go to the Servers view, double-click on the server, select Modules tab at the bottom, and disable auto-reloading there. Done.

0
On

I was getting same issue while using Tomcat in Eclipse. My Tomcat server was ON when Eclipse get closed forcefully , when I open again and start Error: "Port is running" .

To fix this, kill this port process using command. And next time, in your server do -> Open configuration -> Argument-> Stop start -> Apply

So whenever your Eclipse exits or gets terminated, the server automatically stops.