留言板

NoSuchMethod Exceptions after deploy Portlets with updated Services

Morad Ahmad,修改在8 年前。

NoSuchMethod Exceptions after deploy Portlets with updated Services

Junior Member 帖子: 71 加入日期: 10-6-16 最近的帖子
Hi,

after updating my services (add additional fields and methods) and deploy a portlet project to the server new methods are not recognized. I got NoSuchMetho-Exceptions although the new jar in WEB-INF/lib/xxx-service.jar contains the new classes.

after 2 or 3 deployment of the same portlets-project the exceptions "disapear".

I guess liferay dosn't "reload" the service classes immediately after deploy? Any suggestion how to avoid this problem?

Thanks,
Morad.
thumbnail
Romeo Sheshi,修改在8 年前。

RE: NoSuchMethod Exceptions after deploy Portlets with updated Services

Junior Member 帖子: 35 加入日期: 12-5-9 最近的帖子
Hi,

this problem happens to me with hotdeploy. Usually i delete the portlet in webapps directory before deploying. The problem seems to be that liferay put the portelt deployed dir in temp and when redeploying he don't load the classloader and use the old jar.
Morad Ahmad,修改在8 年前。

RE: NoSuchMethod Exceptions after deploy Portlets with updated Services

Junior Member 帖子: 71 加入日期: 10-6-16 最近的帖子
Thank you, but these means it's a known bug using hot deployment?
Morad Ahmad,修改在8 年前。

RE: NoSuchMethod Exceptions after deploy Portlets with updated Services

Junior Member 帖子: 71 加入日期: 10-6-16 最近的帖子
Thank you,

yes It "solves" the problem, but I think it's a real problem, that hot deployment doesn't work correctly! Removing the portlet app could cause some side effects when including hooks etc. in the same portlet project.

I face these error periodically. I think it's really a serious issue and must be solved in Liferay 6.2!

Morad.