Issue
When creating a service builder project and after deploying the Jars files, it shows the unsatisfied references'' in the GOGO shell.
Steps to reproduce:
- Start the server.
- Deploy the JAR file.
- Navigate to the Control Panel > Configuration > Gogo shell.
- Enter 'lb', and can see that the module is in an active state.
- Then enter this command: ds:unsatisfied
Expected behavior: The error should not be displayed on the UI.
Observed behavior: Getting below output:
Output
Bundle {id: 1034, name: com.test.unpaid.bond.web, version: 1.0.0}
Declarative Service {id: 4345, name: com.test.unpaid.bond.web.portlet.TestUnpaidBondWebPortlet, unsatisfied references:
{name: _fooLocalService, target: null}
Environment
- Liferay DXP 7.1
Resolution
- The header
Liferay-Spring-Context: META-INF/springis not present in the bundle JAR file and is missing.
- Add the header to the
bnd.bndfile of the module and build the module again. - Then, deploy the created JAR file. The error will not be visible.