Foros de discusión

load portlet resources

rage ice, modificado hace 10 años.

load portlet resources

New Member Mensaje: 1 Fecha de incorporación: 17/12/13 Mensajes recientes
Hi,

I am developing an ext plugin with liferay 6.1.2.
I am searching for a way to load a resource from liferay which is in the classpath of a portlet application (in fact, in a jar dependency of my portlet app, not in WEB-INF/classes/ ).
Unhappily, I don't know how to retrieve the class loader of this portlet app.
I have tried with ClassLoaderUtil (getContextClassLoader / getPortalClassLoader, and their parent class loader), but without result.
Same thing by using PortletClassLoaderUtil (servletContext.getAttribute(PluginContextListener.PLUGIN_CLASS_LOADER) returns null).

So finally, I don't find any way to get my resource.

Do you have ideas/suggestions?
Thanks in advance.