FarazShuja
FarazShuja

Reputation: 2370

deploy automatically file to tomcat from eclipse

I have a VPS which I can access via myvm.com My tomcat location is C:\tomcat\ I can access my web application thats inside my tomcate/WebApps folder via http://myvm.com

Now I have a java project at C:\MyProject. I have imporeted my project into eclipse. Now I want as soon as I edit some file in C:\MyProject, it should automatically deploy it to C:\tomcat so that I can browse it via http://myvm.com

How to do that? Please some detailed steps I am very new to this system.

Upvotes: 0

Views: 486

Answers (2)

Nickmancol
Nickmancol

Reputation: 1044

You can use the Sysdeo Tomcat Plugin to keep your tomcat updated with the latest changes to your java project.

The jvm doesn't support some kinds of hotreplacement code but you can use DCEVM to overpass them:

The Dynamic Code Evolution Virtual Machine (DCE VM) is a modification of the Java HotSpot(TM) VM that allows unlimited redefinition of loaded classes at runtime. The current hotswapping mechanism of the HotSpot(TM) VM allows only changing method bodies. Our enhanced VM allows adding and removing fields and methods as well as changes to the super types of a class.

Upvotes: 0

yodamad
yodamad

Reputation: 1510

This may help you : tuto eclipse tomcat

If you declare your tomcat installation (in C:\tomcat) in your eclipse installation, you should be able to auto publish in it or at least using "redeploy" command

Upvotes: 1

Related Questions