74068

How to redeploy the web app using the Eclipse IDE

Im new to Eclipse. I use Tomcat as my run time server, but every time I modified the jsp pages, Eclipse was still displaying the older one. Just wondering how to redeploy the application so the changes can be reflected.

Eclipse: Eclipse IDE for Java EE Developers 1.2.1.20090918-0703

Tomcat: Tomcat 6.0

Thanks

Answer1:

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.

Answer2:

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.

Answer3:

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

<ol> <li>Go to Windows > Preferences > Server > Runtime environments and add your tomcat</li> <li>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.</li> </ol>

Answer4:

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/

Recommend

  • Parse returned C# list in AJAX success function
  • ssh2_scp_send() using php corrupts pdf
  • PHP PDF generation problem
  • Align Excel cell to center VB - xlCenter is not declared
  • Imports in __init__.py and `import as` statement
  • Escaping single quotes in JDBC with MySql
  • Adding Parent and Child Nodes in TreeView from Sql Server 2008
  • jQuery - resize an elements height to match window without refreshing, on window resize
  • File extension of zlib zipped html page?
  • Failed to find version-tag string. File must be updated
  • Alamofire and Reachability.swift not working on xCode8-beta5
  • Aptana 3 remove bundle (jquery)
  • How do I retrieve the user information of a user authenticated with Apache's mod_ldap?
  • Uncaught TypeError: $(…).select2 is not a function
  • Ajax Upload File: $_FILES is empty but files exists in request header
  • How do I configure context broker accept post requests from my remote sensor?
  • Bypass multiple inheritance in Java
  • wxPython: displaying multiple widgets in same frame
  • Visual Studio 2010 debugger build correctly - compiler pdb and linker pdb not in synch?
  • How to get Eclipse Oxygen to run on Java 9
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Alert pop up with LWUIT
  • Change multiple background-images with jQuery
  • Algorithm for a smudge tool?
  • Disabling Alt-F4 on a Win Forms NotifyIcon
  • Getting last autonumber in access
  • Deleting and Updating values from a cusrsor adapter
  • swift auto completion not working in Xcode6-Beta
  • Can Jackson SerializationFeature be overridden per field or class?
  • Excel - Autoshape get it's name from cell (value)
  • Window Size for Mac application
  • Sending data from AppleScript to FileMaker records
  • SSO with signing and signature validation doesn't work
  • XCode can't find symbols for a specific iOS library/framework project
  • Android Studio and gradle
  • KeystoneJS: Relationships in Admin UI not updating
  • AngularJs get employee from factory
  • Load html files in TinyMce
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • How to get NHibernate ISession to cache entity not retrieved by primary key