Foren
Adding custom classes to Liferay classloader
Vetal Koshelenko, geändert vor 12 Jahren.
Adding custom classes to Liferay classloader
Expert Beiträge: 319 Beitrittsdatum: 25.03.11 Neueste Beiträge
Hi, everyone.
I'm implementing the following feature http://www.liferay.com/community/forums/-/message_boards/message/13364212 and I need to find a way of adding custom classes to Liferay classloader (so, after portlet application is deployed - it's classes should be visible from standard Liferay functionality). I have created META-INF/context.xml file with following content:
<Context>
<Loader loaderClass="com.liferay.support.tomcat.loader.PortalClassLoader" />
</Context>
as described here: http://www.liferay.com/community/wiki/-/wiki/Main/How+to+access+the+full+Liferay+API+from+a+portlet+application
Now I need Liferay to "understand" classes from my portlet app after deploy.
Any ideas to do that?
I'll appreciate any help.
Regards, Vitaliy K.
I'm implementing the following feature http://www.liferay.com/community/forums/-/message_boards/message/13364212 and I need to find a way of adding custom classes to Liferay classloader (so, after portlet application is deployed - it's classes should be visible from standard Liferay functionality). I have created META-INF/context.xml file with following content:
<Context>
<Loader loaderClass="com.liferay.support.tomcat.loader.PortalClassLoader" />
</Context>
as described here: http://www.liferay.com/community/wiki/-/wiki/Main/How+to+access+the+full+Liferay+API+from+a+portlet+application
Now I need Liferay to "understand" classes from my portlet app after deploy.
Any ideas to do that?
I'll appreciate any help.
Regards, Vitaliy K.