掲示板

NoSuchMethod Exceptions after deploy Portlets with updated Services

8年前 に Morad Ahmad によって更新されました。

NoSuchMethod Exceptions after deploy Portlets with updated Services

Junior Member 投稿: 71 参加年月日: 10/06/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
8年前 に Romeo Sheshi によって更新されました。

RE: NoSuchMethod Exceptions after deploy Portlets with updated Services

Junior Member 投稿: 35 参加年月日: 12/05/09 最新の投稿
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.
8年前 に Morad Ahmad によって更新されました。

RE: NoSuchMethod Exceptions after deploy Portlets with updated Services

Junior Member 投稿: 71 参加年月日: 10/06/16 最新の投稿
Thank you, but these means it's a known bug using hot deployment?
8年前 に Morad Ahmad によって更新されました。

RE: NoSuchMethod Exceptions after deploy Portlets with updated Services

Junior Member 投稿: 71 参加年月日: 10/06/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.