RE: Service builder jndi schema not working .

Jamie Sammons, modified 3 Years ago. New Member Post: 1 Join Date: 4/7/22 Recent Posts

Good Day

I have recently migrated my service builder from 7.0.6 to 7.3 which had a custom database schema configured.

I discoverd that when using the liferay dependancy below, the services are null and cannot be injected using the @Reference anotation

compileOnly group: "com.liferay.portal", name: "release.portal.api"

in my gradle.properties I use:

liferay.workspace.product=portal-7.3-ga6

My solution was to use th dependancies below:

compileOnly group: "com.liferay", name: "com.liferay.petra.io"
compileOnly group: "com.liferay", name: "com.liferay.petra.lang"
compileOnly group: "com.liferay", name: "com.liferay.petra.string"
compileOnly group: "com.liferay", name: "com.liferay.portal.aop.api"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel"
compileOnly group: "org.osgi", name: "org.osgi.annotation.versioning"
compileOnly group: "org.osgi", name: "org.osgi.core"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations"
compileOnly group: "com.liferay", name: "com.liferay.petra.sql.dsl.api"
compileOnly group: "com.liferay", name: "com.liferay.portal.spring.extender.api"
compileOnly group: "com.liferay", name: "com.liferay.portal.spring.extender.impl"

In my gradle.properties i use :

liferay.workspace.target.platform.version = 7.3.6

My Question is why the service builder not working when using the first scenario

 

regards

 

 

 

 

thumbnail
Russell Bohl, modified 3 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts

Hi Mabetha, I don't know if this is the extent of the issue, but I believe 7.3-ga6 needs to be udpated to 7.3-ga8 for the liferay.workspace.product value.