Foros de discusión
liferay OSGI service builder deployment error
Murali Krishna, modificado hace 7 años.
liferay OSGI service builder deployment error
Junior Member Mensajes: 47 Fecha de incorporación: 17/01/12 Mensajes recientes
HI,
i am getting the following error while deploying the OSGI service builder in liferay 7 .
17:20:35,637 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:252] Processing vf.goop.services-api.jar
17:20:35,677 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:252] Processing vf.goop.services-service.jar
17:20:41,501 INFO [fileinstall-C:/Liferay/liferay-dxp-digital-enterprise-7.0-ga1/osgi/modules][BundleStartStopLogger:38] STOPPED vf.goop.services-api_1.0.0 [531]
17:20:41,664 INFO [Refresh Thread: Equinox Container: 802adff0-4f7f-0016-10b9-b1cc2272184b][BundleStartStopLogger:35] STARTED vf.goop.services-api_1.0.0 [531]
17:20:41,689 WARN [fileinstall-C:/Liferay/liferay-dxp-digital-enterprise-7.0-ga1/osgi/modules][org_apache_felix_fileinstall:103] Error while starting bundle: file:/C:/Liferay/liferay-dxp-digital-enterprise-7.0-ga1/osgi/modules/vf.goop.services-service.jar
org.osgi.framework.BundleException: Could not resolve module: vf.goop.services-service [530]_ Unresolved requirement: Import-Package: com.vf.goop.exception_ [Sanitized]
at org.eclipse.osgi.container.Module.start(Module.java:429)
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1252)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1224)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:512)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:313)
can you please check it.
Thanks,
Murali
i am getting the following error while deploying the OSGI service builder in liferay 7 .
17:20:35,637 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:252] Processing vf.goop.services-api.jar
17:20:35,677 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:252] Processing vf.goop.services-service.jar
17:20:41,501 INFO [fileinstall-C:/Liferay/liferay-dxp-digital-enterprise-7.0-ga1/osgi/modules][BundleStartStopLogger:38] STOPPED vf.goop.services-api_1.0.0 [531]
17:20:41,664 INFO [Refresh Thread: Equinox Container: 802adff0-4f7f-0016-10b9-b1cc2272184b][BundleStartStopLogger:35] STARTED vf.goop.services-api_1.0.0 [531]
17:20:41,689 WARN [fileinstall-C:/Liferay/liferay-dxp-digital-enterprise-7.0-ga1/osgi/modules][org_apache_felix_fileinstall:103] Error while starting bundle: file:/C:/Liferay/liferay-dxp-digital-enterprise-7.0-ga1/osgi/modules/vf.goop.services-service.jar
org.osgi.framework.BundleException: Could not resolve module: vf.goop.services-service [530]_ Unresolved requirement: Import-Package: com.vf.goop.exception_ [Sanitized]
at org.eclipse.osgi.container.Module.start(Module.java:429)
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1252)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1224)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:512)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:313)
can you please check it.
Thanks,
Murali
David H Nebinger, modificado hace 7 años.
RE: liferay OSGI service builder deployment error
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientesMurali Krishna:
Unresolved requirement: Import-Package: com.vf.goop.exception
can you please check it.
Check what? That seems to be your own code that is leading to that error.
Check that your api jar actually has this package and is exporting them, also make sure the api jar is deployed and started.
Come meet me at the LSNA!
Murali Krishna, modificado hace 7 años.
RE: liferay OSGI service builder deployment error
Junior Member Mensajes: 47 Fecha de incorporación: 17/01/12 Mensajes recientes
HI David,
Thanks for your quick response.
i did the following steps:
service.xml:
<entity local-service="true" name="JarticleErrorMessage" remote-service="true">
<column name="id" primary="true" type="long" />
<column name="errortitle" type="String" />
<column name="errormessage" type="String" />
<column name="errorcode" type="String" />
<column name="errortype" type="String" />
</entity>
JarticleErrorMessageServiceImpl:
i want to fetch the data from journalArticleLocalService. so, i added below service reference.
@ServiceReference(type = com.liferay.journal.service.JournalArticleLocalService.class)
protected com.liferay.journal.service.JournalArticleLocalService journalArticleLocalService;
build.gradle:
dependencies {
compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib", version: "3.2.0"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.lists.api", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.lists.service", version: "1.0.0"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.mapping.api", version: "3.0.0"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.mapping.service", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.journal.api", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.journal.service", version: "3.0.0"
compileOnly group: "com.liferay", name: "com.liferay.osgi.util", version: "3.0.0"
compileOnly group: "com.liferay", name: "com.liferay.portal.spring.extender", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.portal.upgrade", version: "2.0.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.impl", version: "2.7.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.6.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.util.java", version: "2.0.0"
compileOnly group: "javax.portlet", name: "portlet-api", version: "2.0"
compileOnly group: "javax.servlet", name: "javax.servlet-api", version: "3.0.1"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.mapping.api", version: "3.3.0"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.mapping.data.provider", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.mapping.io", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.mapping.validator", version: "2.0.0"
compileOnly project(":modules:vf-goop-services:vf-goop-services-api")
}
buildService {
apiDir = "../vf-goop-services-api/src/main/java"
osgiModule = true
propsUtil = "com.example.service.util.PropsUtil"
}
i am not getting any journalArticleLocalService implemented methods.
can you please address it, where i did wrong.
Thanks,
Murali
Thanks for your quick response.
i did the following steps:
service.xml:
<entity local-service="true" name="JarticleErrorMessage" remote-service="true">
<column name="id" primary="true" type="long" />
<column name="errortitle" type="String" />
<column name="errormessage" type="String" />
<column name="errorcode" type="String" />
<column name="errortype" type="String" />
</entity>
JarticleErrorMessageServiceImpl:
i want to fetch the data from journalArticleLocalService. so, i added below service reference.
@ServiceReference(type = com.liferay.journal.service.JournalArticleLocalService.class)
protected com.liferay.journal.service.JournalArticleLocalService journalArticleLocalService;
build.gradle:
dependencies {
compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib", version: "3.2.0"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.lists.api", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.lists.service", version: "1.0.0"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.mapping.api", version: "3.0.0"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.mapping.service", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.journal.api", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.journal.service", version: "3.0.0"
compileOnly group: "com.liferay", name: "com.liferay.osgi.util", version: "3.0.0"
compileOnly group: "com.liferay", name: "com.liferay.portal.spring.extender", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.portal.upgrade", version: "2.0.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.impl", version: "2.7.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.6.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.util.java", version: "2.0.0"
compileOnly group: "javax.portlet", name: "portlet-api", version: "2.0"
compileOnly group: "javax.servlet", name: "javax.servlet-api", version: "3.0.1"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.mapping.api", version: "3.3.0"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.mapping.data.provider", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.mapping.io", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.mapping.validator", version: "2.0.0"
compileOnly project(":modules:vf-goop-services:vf-goop-services-api")
}
buildService {
apiDir = "../vf-goop-services-api/src/main/java"
osgiModule = true
propsUtil = "com.example.service.util.PropsUtil"
}
i am not getting any journalArticleLocalService implemented methods.
can you please address it, where i did wrong.
Thanks,
Murali
Murali Krishna, modificado hace 7 años.
RE: liferay OSGI service builder deployment error
Junior Member Mensajes: 47 Fecha de incorporación: 17/01/12 Mensajes recientes
Thanks David. it' the problem the service build number. now i am able to register the json web services