【问题标题】:Liferay Mobile Device DetectionLiferay 移动设备检测
【发布时间】:2021-04-14 01:06:54
【问题描述】:

我是 Liferay 的新手,我从 Liferay 市场下载了 Mobile Device Detection Lite 并将其放在部署文件夹中,重新启动服务器后出现以下错误

ERROR [Framework Event Dispatcher: Equinox Container: 58db3900-d87a-41e5-b86f-6542cbc57b6c][Framework:93] FrameworkEvent ERROR
org.osgi.framework.BundleException: Could not resolve module: com.liferay.portal.mobile.device.detection.fiftyonedegrees [2720]_  Unresolved requirement: Import-Package: com.liferay.portal.kernel.mobile.device; version="[8.0.0,8.1.0)"_ [Sanitized]
        at org.eclipse.osgi.container.Module.start(Module.java:444)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

有人可以帮我解决上述问题吗?

PS:我使用的是 Liferay 版本:liferay-ce-portal-7.3.5-ga6

【问题讨论】:

  • 确实,我可以在 Liferay CE 7.3.5-ga6 上使用 Liferay Mobile Device Detection Lite.lpkg 版本 3.0.0 重现此问题。但在 Liferay Marketplace 上,有一条警告消息:“最终版本:此应用将没有新版本可用。对此应用的支持将在 EOSL 日期结束。”

标签: liferay-7 mobile-devices adaptive-design


【解决方案1】:

找到了解决办法!
起初我尝试了一种不推荐的hacky方式:
我在 com.liferay.portal.mobile.device.detection.fiftyonedegrees-4.0.8.jar - MANIFEST.MF 中修改了这些值:
com.liferay.portal.kernel.mobile.device;version=" [6.0,9.1)",com.liferay.portal.kernel.util;version="[6.12,11)"
使 jar 文件可部署,但不应使用此方法。

推荐的解决方案是从
https://mvnrepository.com/artifact/com.liferay/com.liferay 下载:
com.liferay.portal.mobile.device.detection.fiftyonedegrees-5.0.8.jar .portal.mobile.device.detection.fiftyonedegrees/5.0.8 并部署它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-09-06
    • 2010-11-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-06
    • 2013-03-14
    相关资源
    最近更新 更多