开发环境
系统:windows10
开发工具IDE: idea
数据库:MySql 8.0.20
Liferay SDK: 7.3.0
Liferay运行环境:7.3.2
Liferay Tomcat: 9.0.33
创建完module 构建部署没有出错,就是把它放在Liferay 运行环境中运行时报如下错误
ERROR [Framework Event Dispatcher: Equinox Container: a223806f-5035-48e4-be05-175ec6ed9b0d][Framework:93] FrameworkEvent ERROR
org.osgi.framework.BundleException: Could not resolve module: student.api [2293]_ 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.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