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

时间:2015-03-10 10:14:51

标签: java spring maven liferay

日志:

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

1 个答案:

答案 0 :(得分:3)

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

确保您确实拥有6.2 SDK,将此声明更改为有意义且已设置的Liferay版本。