Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
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: osgi - Unresolved requirement: Import-Package: javax.microedition.io
Hello experts,
I tried to use AWS SDK in liferay module but I am getting following error message:
My build.gradle file is :
and bdl.bdl is :
Can someone help me how can I find actual jar which contain javax.microedition.io package? The stack-trace does not indicate that which module/jar is using this package.
I tried to use AWS SDK in liferay module but I am getting following error message:
org.osgi.framework.BundleException: Could not resolve module: xyz.service [46]_ Unresolved requirement: Import-Package: javax.microedition.io_ [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)My build.gradle file is :
dependencies {
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
compileOnly group: "org.osgi", name: "org.osgi.compendium", version: "5.0.0"
compileOnly project(":modules:apps:modern-web-architecture:elastic-path-api")
compile group: "org.osgi", name:"org.osgi.service.component.annotations", version:"1.3.0"
compile group: 'com.amazonaws', name: 'aws-java-sdk-core', version: '1.11.189'
compile group: 'com.amazonaws', name: 'aws-lambda-java-core', version: '1.1.0'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.9.0'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.0'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.0'
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-cbor', version: '2.9.0'
}and bdl.bdl is :
Bundle-SymbolicName: xyz.service
Bundle-Version: 1.0.0
Bundle-ClassPath:\
.,\
lib/aws-java-sdk-core.jar,\
lib/aws-lambda-java-core.jar,\
lib/jackson-annotations.jar,\
lib/jackson-core.jar,\
lib/jackson-databind.jar,\
lib/jackson-dataformat-cbor.jar
-includeresource:\
lib/aws-java-sdk-core.jar=aws-java-sdk-core-1.11.189.jar,\
lib/aws-lambda-java-core.jar=aws-lambda-java-core-1.1.0.jar,\
lib/jackson-annotations.jar=jackson-annotations-2.9.0.jar, \
lib/jackson-core.jar=jackson-core-2.9.0.jar,\
lib/jackson-databind.jar=jackson-databind-2.9.0.jar,\
lib/jackson-dataformat-cbor.jar=jackson-dataformat-cbor-2.9.0.jarCan someone help me how can I find actual jar which contain javax.microedition.io package? The stack-trace does not indicate that which module/jar is using this package.
Hey Kailash,
I think javax.microedition.io is an transitive dependency from one of your dependencies.
You may should add all the transitive dependencies into the OSGi container if the container do not have it.
I think javax.microedition.io is an transitive dependency from one of your dependencies.
You may should add all the transitive dependencies into the OSGi container if the container do not have it.
Hi Kailash,
I faced this error sometimes when dependency version was not correct. In my opinion there is some dependency /transitive dependency whose version is not correct. Try if you are using correct supported version.
Hope it helps.
REgards
I faced this error sometimes when dependency version was not correct. In my opinion there is some dependency /transitive dependency whose version is not correct. Try if you are using correct supported version.
Hope it helps.
REgards
Community
Company
Feedback