Message Boards
Liferay 7.2 : Service builder - unsatisfied references
Liferay 7.2 : Service builder - unsatisfied references
Junior Member Posts: 67 Join Date: 5/27/14 Recent PostsHello,
We have migrated our project from Liferay 7.0 to 7.2
successfully
Today, I create a new service builder module but my
service-builder module still get
unsatisfied dependency error
and I don't know why
Please, I need help if someone has solution for this error (service builder module with no customization)
ds:unsatisfied
Bundle {id: 1259, name: com.test.service, version: 1.0.0}
Declarative Service {id: 5933, name:
com.test.service.persistence.impl.TestPersistenceImpl, unsatisfied
references:
{name: Configuration, target:
(&(origin.bundle.symbolic.name=com.test.service)(name=service))}
}
Declarative Service {id: 5932, name:
com.test.service.impl.TestLocalServiceImpl, unsatisfied
references:
{name: TestPersistence, target: null}
}
I read this article but I don't understand very well what
can I do to resolve this error.
https://help.liferay.com/hc/en-us/articles/360029316271-Detecting-Unresolved-OSGi-Components#declarative-services-components
Thank you in advanced,
Koffi
RE: Liferay 7.2 : Service builder - unsatisfied references (Answer)
Junior Member Posts: 67 Join Date: 5/27/14 Recent PostsHello everybody,
I find the solution of my issue. This problem occurs because my new service
builder is not saved in the Release_ table for Liferay in database. So to resolve it, I wish
you to use Liferay API (by using Groovy Script, it is a good way to use Liferay API, don't add
new record in Release_ table by SQL Script)
This is my Groovy Script (Liferay control panel) which add my service builder service module in Release_ table and Restart the server
import com.liferay.portal.kernel.service.ReleaseLocalServiceUtil;
ReleaseLocalServiceUtil.addRelease("your module service Bundle-SymbolicName which can find in the module service bnd", "1.0.0");
Bests regards,
Koffi
RE: Liferay 7.2 : Service builder - unsatisfied references
New Member Post: 1 Join Date: 8/18/22 Recent PostsExact solution !!!!
Thanks so much Koffi.