Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat in Eclipse: Edit Javascript without redeploying

I am working on a Java application (which runs on Tomcat) using Eclipse WTP. For development I have configured my tomcat server in Eclipse and use the "auto publish" feature.

This works for .java files (compiled files are getting published).

Its also fine for working in jsp. In this case my edited jsp file is just copied to the server directory without redeploying my application.

However it does not work with javascript files. Everytime i change a .js file my application is redeployed and i have to wait a few seconds.

Is there any tomcat option i am missing?

Thanks

like image 521
micha Avatar asked Jun 24 '26 09:06

micha


1 Answers

Doubleclick your server in the servers view, click on the tab modules at the lower bound of the servers property window, select your web module from the list, click the edit button, uncheck "auto reloading enabled", click ok, save your settings and restart the server.

like image 70
Arne Avatar answered Jun 26 '26 01:06

Arne



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!