Foren

load portlet resources

rage ice, geändert vor 10 Jahren.

load portlet resources

New Member Beitrag: 1 Beitrittsdatum: 17.12.13 Neueste Beiträge
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.