Troubleshooting - Last day of work in 2018




The above error in console means that the classes in com.liferay.portal.search.web.internal.display.context are not accessible. The probable cause of this issue is either the mismatch version of dependencies, or unexported package from Liferay Api.

If the version of dependencies defined in build.gradle matches the version bundled in liferay 7.1(can be figured out through App Manager under Configuration), the next step is to look into export-package list in bnd.bnd in Liferay Api







Only the packages listed in 'Export-Package' can be accessible, and there is no other way around to access to unexported package outside. (That is how OSGI works)
If you do really want to access this portal-search-web, you can remove this default module from OSGI and re-build a new portal-search-web with your customization which requires lots of work.

In the case of overriding JSP, there is no need to do the aforementioned way. It can be done by the JSP overrides using OSGI fragment way.


https://dev.liferay.com/de/develop/tutorials/-/knowledge_base/7-1/jsp-overrides-using-osgi-fragments


https://community.liferay.com/blogs/-/blogs/osgi-fragment-bundles

Comments

Popular posts from this blog

Portlet Edit Mode (Portlet preference) to replace Portlet configuration

GoGo Shell & What can be deleted in Liferay Instance