I have created a liferay custom MVC portlet which is required to call some services/classes defined by someone else in an ext plugin already deployed on the server. Does anyone know what is needed to resolve the "class/service not found" errors?

Thanks in advance!

有帮助吗?

解决方案

When an EXT plugin is deployed the classes inside ext-<plugin-name>-ext-service.jar can be accessed by any plugin since it this goes in the global class-path (/tomcat/lib/ext for tomcat) just like portal-service.jar of liferay.

But the classes inside ext-<plugin-name>-ext-impl.jar can only be accessed by EXT and hook JSPs (if any), since it is similar to portal-impl.jar since this resides in \tomcat\webapps\ROOT\WEB-INF\lib which is in the portal class-path.

So if you are accessing classes inside ext-impl.jar, which seems to be the case then I am sorry to say but you are out of luck.

May be some work around can be found if you can provide more information.

其他提示

I have managed a work-around for this problem. I have worked directly with the database from my portlet, instead of using the service, and have copied the java functions needed from the ext to my portlet. This has solved it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top