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: DXP Service Builder Issue
Gopal Prasad Satapathy, modified 5 Years ago.
Junior Member
Posts: 51
Join Date: 3/29/18
Recent Posts
Hello,
I am using DXP 7.1 Having following issue while deploying service builder.
WARN [Refresh Thread: Equinox Container: d78bf29f-36cd-4622-8de3-19cd43a0c344][ModuleApplicationContextExtender:120] Error while creating extension
java.lang.ClassNotFoundException: com.liferay.portal.kernel.model.Release cannot be found by be.bpost.train.voucher.service_1.0.0
service.xml
<?xml version="1.0"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 7.0.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_7_0_0.dtd"><service-builder package-path="be.bpost.train.voucher">
<namespace>trainvoucherbpostservice</namespace>
<entity name="Bposttrainvouch" local-service="true" remote-service="true" json-enabled="true"></entity>
</service-builder>
bnd.bnd
Bundle-Name: train-voucher-service
Bundle-SymbolicName: be.bpost.train.voucher.service
Bundle-Version: 1.0.0
Liferay-Require-SchemaVersion: 1.0.0
Liferay-Service: true
build.gradle
apply plugin: "com.liferay.portal.tools.service.builder"
dependencies {
compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib", version: "3.5.0"
compileOnly group: "com.liferay", name: "com.liferay.portal.spring.extender.api", version: "3.0.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "3.0.0"
compileOnly group: "com.liferay", name: "com.liferay.osgi.service.tracker.collections", version: "2.0.0"
compileOnly group: 'org.osgi', name: 'org.osgi.framework', version: '1.9.0'
compileOnly group: 'org.osgi', name: 'org.osgi.util.tracker', version: '1.5.2'
compileOnly group: 'com.liferay', name: 'com.liferay.portal.upgrade', version: '2.8.9'
compileOnly project(":modules:train-voucher-api")
}buildService {
apiDir = "../train-voucher-api/src/main/java"
}group = "be.bpost.train.voucher"
BposttrainvouchServiceImpl.java
package be.bpost.train.voucher.service.impl;import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import be.bpost.train.voucher.service.base.BposttrainvouchServiceBaseImpl;
public class BposttrainvouchServiceImpl extends BposttrainvouchServiceBaseImpl {
public String trainVoucherJSON(String screenName) {
return "hello"; }
}
Can anyone suggest, why getting the mentioned warning?
Thanks,
Gopal
I am using DXP 7.1 Having following issue while deploying service builder.
WARN [Refresh Thread: Equinox Container: d78bf29f-36cd-4622-8de3-19cd43a0c344][ModuleApplicationContextExtender:120] Error while creating extension
java.lang.ClassNotFoundException: com.liferay.portal.kernel.model.Release cannot be found by be.bpost.train.voucher.service_1.0.0
service.xml
<?xml version="1.0"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 7.0.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_7_0_0.dtd"><service-builder package-path="be.bpost.train.voucher">
<namespace>trainvoucherbpostservice</namespace>
<entity name="Bposttrainvouch" local-service="true" remote-service="true" json-enabled="true"></entity>
</service-builder>
bnd.bnd
Bundle-Name: train-voucher-service
Bundle-SymbolicName: be.bpost.train.voucher.service
Bundle-Version: 1.0.0
Liferay-Require-SchemaVersion: 1.0.0
Liferay-Service: true
build.gradle
apply plugin: "com.liferay.portal.tools.service.builder"
dependencies {
compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib", version: "3.5.0"
compileOnly group: "com.liferay", name: "com.liferay.portal.spring.extender.api", version: "3.0.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "3.0.0"
compileOnly group: "com.liferay", name: "com.liferay.osgi.service.tracker.collections", version: "2.0.0"
compileOnly group: 'org.osgi', name: 'org.osgi.framework', version: '1.9.0'
compileOnly group: 'org.osgi', name: 'org.osgi.util.tracker', version: '1.5.2'
compileOnly group: 'com.liferay', name: 'com.liferay.portal.upgrade', version: '2.8.9'
compileOnly project(":modules:train-voucher-api")
}buildService {
apiDir = "../train-voucher-api/src/main/java"
}group = "be.bpost.train.voucher"
BposttrainvouchServiceImpl.java
package be.bpost.train.voucher.service.impl;import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import be.bpost.train.voucher.service.base.BposttrainvouchServiceBaseImpl;
public class BposttrainvouchServiceImpl extends BposttrainvouchServiceBaseImpl {
public String trainVoucherJSON(String screenName) {
return "hello"; }
}
Can anyone suggest, why getting the mentioned warning?
Thanks,
Gopal
Alberto Chaparro Terleira, modified 5 Years ago.
Liferay Master
Posts: 560
Join Date: 4/25/11
Recent Posts
Hi Gopal,
Can you provide complete logs to see where the exception is thrown?
Thanks.
Can you provide complete logs to see where the exception is thrown?
Thanks.
Gopal, I am also facing same issue. did you found any solution on this?