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: Service builder jndi schema not working .
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
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.