Message Boards
Liferay 7.2 Service builder : Table not generated
Liferay 7.2 Service builder : Table not generated
Junior Member Posts: 67 Join Date: 5/27/14 Recent PostsHello,
I have an issue about new Liferay service builder plugin in Liferay 7.2. After generated it,
tables are not created in database and any record found in Release_ table also and I still get
this error : 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}
}
If somebody can help me please ?
Thank you in advance,
Yours sincerely
RE: Liferay 7.2 Service builder : Table not generated
Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent PostsMake sure you're
- running in development mode (or have an upgrade routine registered to create the database tables) - specifically if you add a table after your first deployment.
- deploy both the -api and the -service module
- running the latest GA
Also, there are numerous forum posts on similar questions - maybe one of them fits your usecase?
RE: Liferay 7.2 Service builder : Table not generated
Junior Member Posts: 67 Join Date: 5/27/14 Recent PostsHello Olaf,
First of all, thank you for your answer.
I find many similar posts on my issue, and only solution to resolve it is
to register manually the service builder plugin in the Release_ table and everything works fine on
restart of Liferay server. I prefer to add the new record by using groovy script by calling ReleaseLocalServiceUtil.
http://www.liferaysavvy.com/2020/02/liferay-72dxp-service-builder-behavior.html
I notice also that the issue happens when we have done migration from old version to 7.2,
it is our case because we have migrated from 7.0 to 7.2.
I don't understand why any new liferay service builder plugin is not registered automatically in the Release_ table?
For old service builder plugins, it migrated successfully in the Release_ table but all new service builder plugins create
directly in 7.2 are not registered.
Thank you in advanced,
Yours sincerely