Message Boards

Service Builder Deployment Issue

Pradip Patel, modified 3 Years ago.

Service Builder Deployment Issue

New Member Post: 1 Join Date: 5/11/20 Recent Posts
I am using liferay-dxp-7.2.10-ga1 and eclipse version 2019-12 (4.14.0). I have already install liferay IDE 3.6.0 from eclipse market place.
I have already created liferay workspace project. 
Issue is when I create liferay module project with service builder template it created and build service successfully. But When I tried to deploy it shows me below error every time :Error while starting bundle: file: com.test.java.api.jar 
org.osgi.framework.BundleException: Could not resolve module: com.test.java.api [1102]_  Unresolved requirement: Import-Package: com.liferay.exportimport.kernel.lar; version="[2.4.0,3.0.0)"_ [Sanitized]
    at org.eclipse.osgi.container.Module.start(Module.java:444)
    at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1264)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1237)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)

Error while starting bundle: file: com.test.java.service.jar 
org.osgi.framework.BundleException: Could not resolve module: com.test.java.service [1103]_  Unresolved requirement: Import-Package: com.liferay.asset.kernel.service; version="[1.12.0,2.0.0)"_ [Sanitized]
    at org.eclipse.osgi.container.Module.start(Module.java:444)
    at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1264)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1237)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)


I Have below dependencies :
dependencies {
    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 project(":modules:test:test-api")
}
 Please find attach screenshot.  Please give me solution.
Thanks In advance.
thumbnail
Lawrence Lee, modified 3 Years ago.

RE: Service Builder Deployment Issue

New Member Posts: 15 Join Date: 3/11/10 Recent Posts
It looks like you're using Target platform, but perhaps the target platform version is incorrect. Please set this in your gradle.properties of your Liferay Workspace

liferay.workspace.target.platform.version=7.2.10