Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay DXP 7.1 -Not Generating service builder sql
Hi,
Created Service builder using gradle in Liferay 7.1 - Mysql 5.7.
It is created api and service. I have cleaned the build and build-service and deploy those modules. It is generated the jars successfully. But It is not generating the table. Any idea or am i missed any other configurations?
Thanks
Did you check the logs whether module(s) are deployed?
next step, see whether deployment triggerred SQL statements to create tables
Yes Nagendra Modules are deployed properly and i have cleaned and re-deployed again. it is available in osgi container.
Deployment was not triggered SQLstatements.
Hi Nagendra,
Sorry actually api and service buldles are not in Active state. It throws below exception:
api:
org.osgi.framework.BundleException: Could not resolve module:
books.data.api [957]
Unresolved requirement: Import-Package:
com.liferay.portal.kernel.model; version="[1.0.0,1.1.0)"
service:
org.osgi.framework.BundleException: Could not resolve module:
books.data.service [958]
Unresolved requirement:
Import-Package: books.data.exception;
version="[1.0.0,2.0.0)"
-> Export-Package:
books.data.exception; bundle-symbolic-name="books.data.api";
bundle-version="1.0.0"; version="1.0.0";
uses:="com.liferay.portal.kernel.exception"
books.data.api [957]
Unresolved requirement:
Import-Package: com.liferay.portal.kernel.model; version="[1.0.0,1.1.0)"
I think i have missed some depedencies... ?
Hi narendra,
It is an issue of portal-kernal.jar versions. i have updated to 3.0.0 , it worked now.
but how we can identify that which version of the jar we should use? I will start new thread...
Thanks