掲示板

Hook Project

thumbnail
9年前 に Kadir Lüzumlar によって更新されました。

Hook Project

New Member 投稿: 1 参加年月日: 14/04/14 最新の投稿
To create a method for updating our own database after a successful company creation I wrote a Hook that overwrites the portal service using CompanyLocalServiceWrapper. First I have made these changes in a hook project, but this couldn’t access my own services class that is located in another WAR (got a classdefnotfound error).
To solve this I replaced all the hook changes to the project where other portlets and my own services are located, but still it cannot reach the services.
How can I resolve this issue?
thumbnail
9年前 に Krzysztof Gołębiowski によって更新されました。

RE: Hook Project

Liferay Master 投稿: 549 参加年月日: 11/06/25 最新の投稿
I understand that these are not compile-time errors? Did you associate your service project (the part containing service API) with your new hook plugin?
thumbnail
9年前 に Sagar A Vyas によって更新されました。

RE: Hook Project

Liferay Master 投稿: 679 参加年月日: 09/04/17 最新の投稿
Kadir,

If you want to access your portlet services in hook, you need to make available your portlet's jar to global level, so that other portlets can access it.

You can achieve it by putting your portlet's jar to following location.

 \tomcat-7.0.27\lib\ext 


Let me know in case of any concern.

Thanks,
Sagar Vyas