hi我在部署服务api和服务时使用liferay7.3.0

mec1mxoz  于 2021-07-04  发布在  Java
关注(0)|答案(1)|浏览(404)
2020-09-02 19:15:51.972 ERROR [fileinstall-C:/Users/h.mohammadi/IdeaProjects/first-Liferay/bundles/osgi/modules][DirectoryWatcher:1112] Unable to start bundle: file:/C:/Users/h.mohammadi/IdeaProjects/first-Liferay/bundles/osgi/modules/slider.api.jar
org.osgi.framework.BundleException: Could not resolve module: slider.api [2409]_  Unresolved requirement: Import-Package: com.liferay.portal.kernel.model; version="[4.1.0,5.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 com.liferay.portal.file.install.internal.DirectoryWatcher._startBundle(DirectoryWatcher.java:1095)
    at com.liferay.portal.file.install.internal.DirectoryWatcher._startBundles(DirectoryWatcher.java:1128)
    at com.liferay.portal.file.install.internal.DirectoryWatcher._process(DirectoryWatcher.java:990)
    at com.liferay.portal.file.install.internal.DirectoryWatcher.run(DirectoryWatcher.java:302)
n1bvdmb6

n1bvdmb61#

尝试将此行添加到 bnd.bnd 文件 Import-Package: *; version="0";resolution:=optional

相关问题