Frage

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!

War es hilfreich?

Lösung

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.

Andere Tipps

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top