gpt4 book ai didi

java - 在 Liferay 上部署 SpringMVC 项目。错误 : ERROR [com. liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:220]

转载 作者:行者123 更新时间:2023-11-29 05:09:58 24 4
gpt4 key购买 nike

日志:

09:56:01,860 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204] Processing HelloWorld-portlet-7.0.0.1.war
09:56:01,935 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:79] Copying portlets for C:\Users\anju\Downloads\liferay - server\liferay-portal-6.2-ce-ga3\deploy\HelloWorld-portlet-7.0.0.1.war
09:56:01,965 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:863] Deploying HelloWorld-portlet-7.0.0.1.war
09:56:01,965 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:220] com.liferay.portal.kernel.deploy.auto.AutoDeployException: com.liferay.portal.kernel.deploy.auto.AutoDeployException: HelloWorld-portlet-7.0.0.1.war does not support this version of Liferay
com.liferay.portal.kernel.deploy.auto.AutoDeployException: com.liferay.portal.kernel.deploy.auto.AutoDeployException: HelloWorld-portlet-7.0.0.1.war does not support this version of Liferay
at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:216)
at com.liferay.portal.deploy.auto.ThreadSafeAutoDeployer.autoDeploy(ThreadSafeAutoDeployer.java:36)
at com.liferay.portal.deploy.auto.PortletAutoDeployListener.deploy(PortletAutoDeployListener.java:88)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.deploy(AutoDeployDir.java:50)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:211)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:275)
at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:58)
Caused by: com.liferay.portal.kernel.deploy.auto.AutoDeployException: HelloWorld-portlet-7.0.0.1.war does not support this version of Liferay
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:902)
at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:213)
... 6 more
09:56:01,966 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:224] Add HelloWorld-portlet-7.0.0.1.war to the blacklist

我的 liferay sdk:6.2 和 tomcat 是 7。我正在尝试在 liferay 中部署该项目。已经好几天了,我无法解决。

我的liferay插件包:

name=HelloWorld
module-group-id=liferay
module-incremental-version=1
tags=
short-description=
long-description=
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=LGPL
liferay-versions=7.0.0+
portal-dependency-jars=\
commons-collections.jar

最佳答案

您的 Liferay SDK - 至少是您开始使用的那个,或者您从 liferay-plugin-package.properties 复制的那个,是 7.0:liferay-versions=7.0.0+ 声明您的 portlet 与 7.0.x 兼容并且您似乎运行 Liferay 6.2

确保您确实拥有 6.2 SDK,将此声明更改为有意义的 Liferay 版本,然后就可以了。

关于java - 在 Liferay 上部署 SpringMVC 项目。错误 : ERROR [com. liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:220],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28961000/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com