Use wsadmin so that Liferay running on WebSphere will support hot deploy
Priority
Components
Affects versions
Fix versions
Description
Activity
Marta EliceguiNovember 22, 2023 at 4:44 PM
Hi everyone,
Due to inactivity this Story will be closed. If you consider this Story requires to stay open, please re-open the ticket and comment on it stating the reasons.
Thanks for your understanding and cooperation.
Leonardo CostantiniApril 19, 2013 at 5:50 AM
Hi all,
I simply think you cannot run this file "/opt/ibm/websphere/appserver\bin\wsadmin.bat"
It should end with .sh at least on any *nix (opt/ibm/websphere/appserver/bin/wsadmin.sh)
and, depending how your are calling the execution of the file... maybe you should replace \ with / in the path... (but this could be uneeded...)
bye,
Leonardo
Denis SignorettoApril 18, 2013 at 3:20 AM
Hi Kenji,
did you set the property: auto.deploy.websphere.dest.dir=${env.USER_INSTALL_ROOT}/liferay/wsadmin-deploy ?
does the wsadmin-deploy dir exist? (the directory used by websphere deploy scripts to pick up generated war packages)
Regards,
Denis.
Kenji HeigelFebruary 5, 2013 at 3:05 PM
FAILED Manual Testing using the following steps:
Add the following properties in portal-ext.properties
auto.deploy.websphere.wsadmin.app.manager.query=type=ApplicationManager,process=server1,*
Start Liferay in WebSphere
Drag and drop chat portlet and flash portlet to home/deploy
Check the Update Manager
Go back to liferay.com and try to add the flash portlet to a page
Failed on:
WebSphere 7.0 + MySQL 5. Portal 6.0.x EE GIT ID: 23e4b185c8bdb2c40e438d392866a4b46404bd75.
Plugins 6.0.x EE GIT ID: aa1b89a0b369ddabf07e99750cdc06558decaadf.
After deploying the chat and flash portlets, the Update Manager shows the portlets' status as "Installation in progress." After waiting for a few minutes, the status still remains the same and portlets are not available. Upon restarting Liferay on WebSphere, checking Update Manager does not show the Chat or Flash portlets at all.
Fixed on:
WebSphere 7.0 + MySQL 5.0. Portal 6.1.x EE GIT ID: 4f905fa40f72822a6d243ee99a95795823ad30bb.
Plugins 6.1.x EE GIT ID: bb15e6019a7b646c3b0160863005be3b2f064e7d.
Using the same procedure, I tested the deployment in EE 6.1.x. In Update Manager, the portlets' statuses are "Up to Date." The Chat portlet is available, and the Flash portlet can be added to a page.
Denis SignorettoNovember 30, 2012 at 7:02 AM
Actually current implementation don't works on WAS Linux installations. I get this error on Linux.
com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.io.IOException: Cannot run program "/opt/ibm/websphere/appserver\bin\wsadmin.bat": java.io.IOException: error=2, No such file or directory
Details
Assignee
SE SupportSE SupportReporter
Brian ChanBrian ChanBranch Version/s
6.1.x6.0.xBackported to Branch
Committed
Details
Details
Assignee
Reporter
Branch Version/s
Backported to Branch
Zendesk Support
Linked Tickets
Zendesk Support
Linked Tickets
Zendesk Support

WAS 6 and 7 do not support hot deploy.
Add a new property:
# # WebSphere 6 and 7 do not support the ability to hot deploy a WAR. The # portal will attempt to use the wsadmin script to install a hot deployed # plugin at runtime if this property is set. The wsadmin script uses this # property to query the WebSphere application manager. Set this property # to a blank value to disable this feature. # #auto.deploy.websphere.wsadmin.app.manager.query= auto.deploy.websphere.wsadmin.app.manager.query=type=ApplicationManager,process=server1,*
Now, Liferay users on WAS 6 and 7 can enjoy hot deploy like all the other app servers.