WAS v8.5 > Script the application serving environment (wsadmin) > Administer applications using wsadmin.shManage dmgr console applications using wsadmin.sh
Use the Jython or Jacl scripting languages to deploy or remove portlet-based dmgr console applications.
Verify the dmgr console EAR file is not archived before installation.
- Deploy a portlet-based console application into the EAR file.
- Start the wsadmin scripting tool.
- Deploy a portlet-based console application into the EAR file.
To use the existing listener port instead of using or creating a new activation specification, determine whether the EJB JAR version is lower than 2.1. The system automatically creates and uses an activation specification when we specify the -usedefaultbindings option to deploy an application. If an activation specification exists, the system ignores the listener port, and instead uses the activation specification. To deploy an application with an EJB JAR version greater than or equal to 2.1 using the defined listener ports instead of a new activation specification, set the com.ibm.websphere.management.application.dfltbndng.mdb.preferexisting system property to true in the wsadmin.properties file in the properties directory of the profile of interest.
Jython:
AdminApp.update('isclite', 'modulefile', '[-operation add -contents /WebSphere/AppServer/systemApps/isclite.ear/upzippedWarName -contenturi upzippedWARName -usedefaultbindings -contextroot contextroot]')Jacl:
$AdminApp update isclite modulefile {-operation add -contents /WebSphere/AppServer/systemApps/isclite.ear/upzippedWarName -contenturi upzippedWARName -usedefaultbindings -contextroot contextroot}
- Save your configuration changes.
Use the following command example to save your configuration changes:
AdminConfig.save()
- Remove a portlet-based web application archive (WAR) file.
- Start the wsadmin scripting tool.
- Remove the portlet-based WAR file, as the following examples demonstrate:
Jython:
AdminApp.update('isclite', 'modulefile', '[-operation delete -contenturi WarName]')
Jacl:
$AdminApp update isclite modulefile {-operation delete -contenturi WarName}
- Save your configuration changes.
Use the following command example to save your configuration changes:
AdminConfig.save()
SRVE0255E: A WebGroup/Virtual Host to handle /ibm/console has not been defined
Possible isclite.ear corruption or manul port change would have caused the issue.
To solve the issue, uninstall, then reinstall isclite.ear...
$profile_root/bin/wsadmin.sh -lang jython -f deployConsole.py remove
$profile_root/bin/wsadmin.sh -lang jython -f deployConsole.py install
Related
Administer applications using wsadmin.sh
Update enterprise applications with the console
Use the wsadmin scripting AdminApp object for scripted administration
Reference:
Commands for the AdminApp object using wsadmin.sh