留言板

Redeploy of Portlets fails to update the old one

thumbnail
Raja Nagendra Kumar,修改在14 年前。

Redeploy of Portlets fails to update the old one

Expert 帖子: 484 加入日期: 06-3-2 最近的帖子
Hi,

We are trying to deploy a standard JSR 168 portlet on liferay by placing the war file in deploy directory of latest liferay 5.2.x. However the new war is not replacing the old one.. instead if continue to see the error message of the old one.

For this we had to explicitly delete the webapp folder portlet name directory and then re-deploy.

Is this a know issue..

Also, deploying the same correct war files is creating two portlets with the same name. How does liferay portal server know of overriding of portlets and what configuration is required. I am assuming that it has some relationship on the way we give portlet id etc. Any pointers pl.

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
kehsihba eejrenab,修改在14 年前。

RE: Redeploy of Portlets fails to update the old one

Junior Member 帖子: 82 加入日期: 09-7-16 最近的帖子
once a portlet is deployed on liferay it creates WAR_Deployed file on the server similarly for undeployed also .
if you think liferay is not replacing the jar file, you can check with two things

1.delete the jar form autodeploy folder. Immediately the app will be undeployed (check the logs.) Now redeploy the new jar and check

2. u can login with the server admin console and uneploy the application . and agin go to liferay and redeploy it on the autodeploy folder.

when a porlet is deployed and on a page it is put. and the portlet is redeployed . sometimes liferay shows that two or more portlets with the same name/id and prefixed time/date.. but once the new portlet is successfully deployed it goes off.


but if on deployment a new portlet is created that means the deployment descriptors are different for different portlets even though the internal class is same. So be sure about the deployment descriptors(xml files).