留言板
custom entities and hook
Hello, I have a hook that references to a custom entity, I have this error:
Only a type can be imported (here the name of my entity)
resolves to a package
The problem is because I have an import in the init-ext.jsp
to my entity.
Anyone can help me, please?
Only a type can be imported (here the name of my entity)
resolves to a package
The problem is because I have an import in the init-ext.jsp
to my entity.
Anyone can help me, please?
Thiago Leão Moreira,修改在13 年前。
RE: custom entities and hook
Liferay Legend 帖子: 1449 加入日期: 07-10-10 最近的帖子
Hi Andrés,
You have to import your custom entity class to hook's classpath and setup runtime dependency between in projects (http://www.liferay.com/web/thiago.moreira/blog/-/blogs/plugins-dependency-management-on-deployment-time-how). You can also elevate the custom entity classes to the global classpath.
You have to import your custom entity class to hook's classpath and setup runtime dependency between in projects (http://www.liferay.com/web/thiago.moreira/blog/-/blogs/plugins-dependency-management-on-deployment-time-how). You can also elevate the custom entity classes to the global classpath.
Thanks for your answer, in my case all in the same project the hook and the custom entities, all is together.
I follow investigating.
Cheers.
I follow investigating.
Cheers.
Thiago Leão Moreira:
Hi Andrés,
You have to import your custom entity class to hook's classpath and setup runtime dependency between in projects (http://www.liferay.com/web/thiago.moreira/blog/-/blogs/plugins-dependency-management-on-deployment-time-how). You can also elevate the custom entity classes to the global classpath.
Hi Thiago
The link says the entry could not be found, can you provide us a working link that discusses the same thing? I have the same problem, I tried to import custom classes that I've used in my hook to be used in the login.jsp.
Cheers,
Vincent
Thiago Leão Moreira,修改在12 年前。