Issue
- I would like to disable the Document Library File Rank Service
- In Liferay Portal 6.2 and DXP 7.0, there used to be a property which is now removed:
dl.file.rank.enabled=false
Environment
- Liferay DXP 7.1
- Liferay DXP 7.2
Resolution
- As of DXP 7.1, the Document Library File Rank Service has been moved to a module.
- You have to blacklist the com.liferay.document.library.file.rank.service module:
- Navigate to Control Panel > Configuration > System Settings > Module Container
- Add com.liferay.document.library.file.rank.service to Bundle Blacklist > Blacklist Bundle Symbolic Names
- Optionally, you can avoid some warning messages at startup related to Declarative Service Unsatisfied Component Checker by adding com.liferay.document.library.internal.service.DLFileRankDLAppHelperLocalServiceWrapper and com.liferay.document.library.internal.service.DLFileRankDLAppLocalServiceWrapper to Component Blacklist > Blacklist Component Names
- Restart the server
- See the following message in the console, showing successful blacklisting:
2020-04-30 13:31:30.072 INFO [ModuleFramework-Static-Bundles-2][BundleBlacklist:188] Stopping blacklisted bundle com.liferay.document.library.file.rank.service_2.0.20 [1122]
Additional Information
More information about blacklisting:
The service was moved into a module in this Story: LPS-74888