For application development, developers sometimes need to completely rebuild the WAR.
You might need to rebuild a WAR file if you add a portlet to the WAR, delete files from the project, or make other changes that require revision of the portlet.xml
file. Portlet WARs can be rebuilt from WebSphere® Portlet Factory Designer menu commands or by using a script. However, to see these development changes in your published portlets, you must update the portlet WAR with the republished one or re-publishing using the new WAR.
You can rebuild a WAR file by clicking the Publish Application
command and choosing the desired server configuration.
You might occasionally want to publish your Application Server WAR to remove files from the WAR that have been deleted from your project, because deleting a file from your project does not automatically delete it from the WAR. You can publish an Application Server WAR in the same manner: by using WebSphere Portlet Factory Designer menu commands or by running an Ant script.
When using JMX, the server needs to be running to publish your application.
accomplishes its work by initially deleting all files in the project installed WAR location. This is typically the installed applications directory of the server. The entire contents of the project are copied to the installed applications location. In the case of WebSphere, the application server WAR in installableApps
and the exploded application in the \installedApps
folder are updated. In the case of portlets, the portlet.xml
is regenerated and the portlet WAR is recreated.
Parent topic: Development of a WebSphere portlet