Fórumok
Problem: hot deploy new portlets for the second portal instance
Han Nguyen, módosítva 11 év-val korábban
Problem: hot deploy new portlets for the second portal instance
New Member Bejegyzések: 9 Csatlakozás dátuma: 2012.10.05. Legújabb bejegyzések
Hi all,
I have 2 portal instances per a Liferay installation. That's OK with the first instance. But the second portal instance, I have a problem such as:
- I deploy my new portlet successfully.
- I login the second portal instance, go to Control Panel --> Plugins Configuration, find my portlet and inactive it.
- I restart Tomcat, login this portal again. Now my portlet is active.
It seems that my portlet is re-deployed whenever Tomcat is started. So my configuration of the portlet (inactive status) is overwritten by the default configuration (active status). Please give me any suggestions to fix this. I'm using Tomcat 6.0.35 and Liferay CE 6.1.1. Thanks a lot!
I have 2 portal instances per a Liferay installation. That's OK with the first instance. But the second portal instance, I have a problem such as:
- I deploy my new portlet successfully.
- I login the second portal instance, go to Control Panel --> Plugins Configuration, find my portlet and inactive it.
- I restart Tomcat, login this portal again. Now my portlet is active.
It seems that my portlet is re-deployed whenever Tomcat is started. So my configuration of the portlet (inactive status) is overwritten by the default configuration (active status). Please give me any suggestions to fix this. I'm using Tomcat 6.0.35 and Liferay CE 6.1.1. Thanks a lot!
Vilmos Papp, módosítva 11 év-val korábban
RE: Problem: hot deploy new portlets for the second portal instance
Liferay Master Bejegyzések: 529 Csatlakozás dátuma: 2010.10.21. Legújabb bejegyzések
Hi,
Here you can find how you can aviod the reactivation: http://www.liferay.com/community/wiki/-/wiki/Main/Frequently+Asked+Questions#section-Frequently+Asked+Questions-How+can+I+disable+portlets+bundled+with+Liferay
Regards,
Vilmos
Here you can find how you can aviod the reactivation: http://www.liferay.com/community/wiki/-/wiki/Main/Frequently+Asked+Questions#section-Frequently+Asked+Questions-How+can+I+disable+portlets+bundled+with+Liferay
Regards,
Vilmos
Han Nguyen, módosítva 11 év-val korábban
RE: Problem: hot deploy new portlets for the second portal instance
New Member Bejegyzések: 9 Csatlakozás dátuma: 2012.10.05. Legújabb bejegyzések
Hi Vilmos,
It seems to be applied for portlets bundled with Liferay. In my case, I'm deploying my new portlet. The problem is that by using Plugins Configuration GUI to active/deactive my portlet, I checked that 'portlet' table in DB was updated with correct data, but it will be overwrite when I restart Tomcat.
It seems to be applied for portlets bundled with Liferay. In my case, I'm deploying my new portlet. The problem is that by using Plugins Configuration GUI to active/deactive my portlet, I checked that 'portlet' table in DB was updated with correct data, but it will be overwrite when I restart Tomcat.
Juan Gonzalez P, módosítva 11 év-val korábban
RE: Problem: hot deploy new portlets for the second portal instance
Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
I guess hot deploy wasn't created for clusters.
Deploying in nodes of a custer is a matter of application server, not Liferay.
So in your case I would create an script that copy the WAR into different deploy folders so each node can "hot deploy" it.
Deploying in nodes of a custer is a matter of application server, not Liferay.
So in your case I would create an script that copy the WAR into different deploy folders so each node can "hot deploy" it.
Han Nguyen, módosítva 11 év-val korábban
RE: Problem: hot deploy new portlets for the second portal instance
New Member Bejegyzések: 9 Csatlakozás dátuma: 2012.10.05. Legújabb bejegyzések
Thanks Juan. But my case is no cluster. I create multiple portal instances per one Liferay installation per one machine. This is the same as multi-tenancy.
Vilmos Papp, módosítva 11 év-val korábban
RE: Problem: hot deploy new portlets for the second portal instance
Liferay Master Bejegyzések: 529 Csatlakozás dátuma: 2010.10.21. Legújabb bejegyzések
Actually, your basic problem is that you don't want to make your portlet accessible on one instance only, but you want to use it on the other one or you want to inactivate your portlet for both?
Han Nguyen, módosítva 11 év-val korábban
RE: Problem: hot deploy new portlets for the second portal instance
New Member Bejegyzések: 9 Csatlakozás dátuma: 2012.10.05. Legújabb bejegyzések
Hi Vilmos,
That's right. I want deploy my portlet in inactive status and if any instances want to use it then can active it.
That's right. I want deploy my portlet in inactive status and if any instances want to use it then can active it.
Vilmos Papp, módosítva 11 év-val korábban
RE: Problem: hot deploy new portlets for the second portal instance
Liferay Master Bejegyzések: 529 Csatlakozás dátuma: 2010.10.21. Legújabb bejegyzések
Please test it by adding <active>false</active> to your liferay-portlet.xml and redeploy it. I think it should be inactive after deploy based on. If not, just open a ticket in JIRA as this case it could be a bug, but it needs further analysis.
Based on the DTD it should work:
Based on the DTD it should work:
<!--
Set the active value to true if the portlet is active and available to users.
If set to false, the portlet will not be active or available to users. The
default value is true.
This value can be changed at runtime via the Admin portlet.
-->
<!--ELEMENT active (#PCDATA)-->
Juan Gonzalez P, módosítva 11 év-val korábban
RE: Problem: hot deploy new portlets for the second portal instance
Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
Ups, sorry.
Totally misunderstood.
Totally misunderstood.