Using wsadmin to deploy the generated .war file on WAS 7

You can also use the wsadmin tool to deploy the generated .war file from the command line.

Note: These steps may need to be adjusted for alternate WAS configurations.

In the wsadmin tool, enter a command similar to the example below, where the command is executed from the deploy output directory (that is, the directory containing the endeca-navigation-portlet.war file):

[WAS]/AppServer/bin/wsadmin.sh -c "\$AdminApp update Studio 
modulefile {-operation addupdate -contents endeca-navigation-port¬
let.war -contextroot /endeca-navigation-portlet/ -contenturi endeca-navi¬
gation-portlet -usedefaultbindings}" -c "\$AdminConfig save"
In this example:
  • The enterprise application is named Studio.
  • The file name for the module being added is endeca-navigation-portlet.war.
  • The module display name is endeca-navigation-portlet
  • The command is executed in /home/endeca/liferay/websphere-deploy/ .