Forums de discussion

Unable to load class in Liferay 7

thumbnail
Nikhil Nishchal, modifié il y a 6 années.

Unable to load class in Liferay 7

Regular Member Publications: 177 Date d'inscription: 22/06/12 Publications récentes
Hello,

In liferay 6.2 for any custom api jar we add it in tomcat/lib/ext and it become available to our portlet.

But, in liferay 7 I am unable to load the class of our custom api jar when I add it to lib/ext.

Is there any workaround to get this jar available to all portlet?

Thanks!
thumbnail
Olaf Kock, modifié il y a 6 années.

RE: Unable to load class in Liferay 7

Liferay Legend Publications: 6403 Date d'inscription: 23/09/08 Publications récentes
Nikhil Nishchal:
In liferay 6.2 for any custom api jar we add it in tomcat/lib/ext and it become available to our portlet.

But, in liferay 7 I am unable to load the class of our custom api jar when I add it to lib/ext.

Is there any workaround to get this jar available to all portlet?


Best: Through deploying your custom-api.jar as OSGi bundle and declare proper dependencies. If that's not possible: Wrap it in your portlets at build time and include the API with all your portlets. Less elegant, but will still use a lot less space than a full webapplication per plugin.