Create a directory, save the WAR file into this directory, and expand the WAR file.
Use the jar command from JDK1.4.x. For example, type jar -xvf wpportlets.war.
Open wpportlets/web/wpportlets/app.xml file and change the following configuration to point to Web publisher application.
<wpurl>http://<web_publisher_server_hostname>:<portnumber>/wp</wpurl> |
From the top directory that contains the WAR file, create the WAR file that's ready for deployment.
For example, type:
rm wpportlets.war jar -cvf wpportlets.war * |