Fórum

Service is not registered as a json web service.

thumbnail
Abhishek Jain, modificado 6 Anos atrás.

Service is not registered as a json web service.

Regular Member Postagens: 226 Data de Entrada: 20/08/16 Postagens Recentes
I made a servicebuilder ,modified build.gradle and bnd.bnd files, built service, did gradle refresh and deployed the module. Table is successfully generated, but service is not displayed in the json web services list. My bnd.bnd is as follows:-
Bundle-SymbolicName: mobile.services-service
Bundle-Version: 1.0.0
Liferay-Require-SchemaVersion: 1.0.0
Liferay-Service: true


Private-Package: com.fasterxml.jackson.core.*,org.joda.time.*, com.fasterxml.jackson.annotation.*,nl.hema.*,com.liferay.mail.model,com.fasterxml.jackson.databind.*
Import-Package: com.fasterxml.jackson.annotation.*,org.apache.commons.httpclient.*,!org.apache.commons.validator.*,!org.apache.axis.tools.ant.wsdl.*,org.apache.*,javax.*,com.liferay.*,com.fasterxml.jackson.databind.*,\
com.fasterxml.jackson.core.*
Include-Resource: lib/util-java.jar=util-java-*.jar,lib/portal-service.jar=portal-service-*.jar,lib/poi.jar=poi-*.jar
Bundle-ClassPath: lib/util-java.jar,lib/portal-service.jar,lib/poi.jar,.


build.gradle is as follows:-
dependencies {
    //compileInclude group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
	compile group: "biz.aQute.bnd", name: "biz.aQute.bndlib", version: "3.1.0"
	compile group: "com.liferay", name: "com.liferay.osgi.util", version: "3.0.0"
	compile group: "com.liferay", name: "com.liferay.portal.spring.extender", version: "2.0.0"
	compile group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.6.0"
	compile project(":modules:mobile-services:mobile-services-api")
	compile group: 'com.liferay', name: 'com.liferay.journal.api', version: '2.6.0'
	compile group: 'org.elasticsearch', name: 'elasticsearch', version: '1.0.1'
	
	compile group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0"
	compile group: "javax.portlet", name: "portlet-api", version: "2.0"
	compile group: "javax.servlet", name: "servlet-api", version: "2.5"
	compile group: "jstl", name: "jstl", version: "1.2"
	compile group: "org.osgi", name: "org.osgi.compendium", version: "5.0.0"
	
	compile fileTree(dir: 'lib', include: '*.jar')
	compile group: 'com.liferay.portal', name: 'util-java', version: '6.2.4'
	
	// https://mvnrepository.com/artifact/javax.mail/mail
    compile group: 'javax.mail', name: 'mail', version: '1.4'
    
    compile group: 'com.liferay.portal', name: 'portal-service', version: '6.2.4'
	// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.8', transitive:false
	// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.8'
// https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-joda
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-joda', version: '2.8.8'
// https://mvnrepository.com/artifact/org.apache.poi/poi
compile group: 'org.apache.poi', name: 'poi', version: '3.5-beta5'
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.8.8'
// https://mvnrepository.com/artifact/commons-validator/commons-validator
compile group: 'commons-validator', name: 'commons-validator', version: '1.4.0'

	
}

buildService {
	apiDir = "../mobile-services-api/src/main/java"
	osgiModule = true
	propsUtil = "com.componence.generic.mobile.service.service.util.PropsUtil"
}


I read several posts regarding this but nothing helped. Please help me ...any help would be appreciated.
thumbnail
Christoph Rabel, modificado 6 Anos atrás.

RE: Service is not registered as a json web service.

Liferay Legend Postagens: 1554 Data de Entrada: 24/09/09 Postagens Recentes
Are all OSGI modules active? Maybe there is a missing dependency.
thumbnail
Abhishek Jain, modificado 6 Anos atrás.

RE: Service is not registered as a json web service.

Regular Member Postagens: 226 Data de Entrada: 20/08/16 Postagens Recentes
Yes, modules are active
thumbnail
Byran Zaugg, modificado 6 Anos atrás.

RE: Service is not registered as a json web service.

Expert Postagens: 252 Data de Entrada: 06/04/12 Postagens Recentes
This forum is for Custom Theme Development. You'd get better support from the Liferay Portal Development forum.