Today I played around with the hotdeplyoment of a portlet into my Liferay server 5.3 which runs on top of Glassfish 2.1.
There are different documentations about this topic. But I run into the problem that my portlet (developed with Eclipse and Maven) was deployed but also immediately undeployed. The deployment process allways ends with a message like:
[AutoDeploy] Successfully autoundeployed : /opt/glassfish_v2ur2/domains/lportal/autodeploy/imixs-workflow-portlet-sample-0.0.4-SNAPSHOT.war.|#]
I did not know why, but the solution for me was to change the Deploy Directory configured in the liferay server from the Glassfish Autodeploy folder to a directory outside my glassfish/liferay server.
You can change the settings in the Plugin-Installer Portlet from liferay. I did not use the property file 'portal-ext.properties'!
After I changed the "Deploy Directory" and leave the "Destination Directory" blank, hot deployment works for me.
Ok I forget to explain how my portlet goes into my local autodeploy folder ;-)
I am developing my portlets with maven. So in my pom.xml I added the following maven-antrun-plugin which copies the portlet war into my autodeploy folder:
<echo message="About to copy plugin to autodeploydirectory..." />
autodeploy directory: /home/rsoika/liferay_autodeploy </echo>
<echo message="Copied to portletdeploy directory." />