score:0

eclipse should do that automatically for you. otherwise, on the servers view (menu window->show view->servers), you can right click on your tomcat instance and hit "publish" or "restart"

make sure you have the "jst server adapters" ("web, xml and java ee development category") feature installed.

score:0

get the tomcat plugin. it was nice because you can install tomcat on your system and then associate your web app with that instance of tomcat. the plugin will let you stop/start tomcat and define a server such that when you do a build it knows how to deploy the changes. there may be some newer plugin but the tomcat plugin worked for me and was fairly simple to install and use. here is a page from ibm on using eclipse and tomcat. inside that page it points you to the following: http://www.ibm.com/developerworks/opensource/library/os-eclipse-tomcat/

score:0

eclipse's publishing functionality requries the project to be a "web project", and in some cases requires additional configurations.

  1. go to windows > preferences > server > runtime environments and add your tomcat
  2. either try using publishing, or (better i think) use the filesync plugin. there you can tell which folders from your project should be copied (live) to what directory on your machine (the tomcat/webapps/yourapp). with a little more effort the filesync configuration can be made machine independent (only using one parameter as tomcat_root), in case you want to check-in the project to a repository where others will use it.

score:2

doubleclick the server instance in question in the servers view to open its configuration. now, in the right top you should see a section called publishing. open it to verify and configure autopublishing settings.


Related Query

More Query from same tag