掲示板
Hook Project
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?
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?
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?
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.
Let me know in case of any concern.
Thanks,
Sagar Vyas
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