RE: Liferay DXP 7.1 -Not Generating service builder sql

thumbnail
Gnaniyar Zubair, modified 7 Years ago. Liferay Master Posts: 724 Join Date: 12/19/07 Recent Posts

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

thumbnail
Nagendra Kumar Busam, modified 7 Years ago. Liferay Master Posts: 678 Join Date: 7/7/09 Recent Posts

Did you check the logs whether module(s) are deployed? 

 

next step, see whether deployment triggerred SQL statements to create tables

 

thumbnail
Gnaniyar Zubair, modified 7 Years ago. Liferay Master Posts: 724 Join Date: 12/19/07 Recent Posts

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. 

 

 

thumbnail
Gnaniyar Zubair, modified 7 Years ago. Liferay Master Posts: 724 Join Date: 12/19/07 Recent Posts

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... ?

thumbnail
Gnaniyar Zubair, modified 7 Years ago. Liferay Master Posts: 724 Join Date: 12/19/07 Recent Posts

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