MyFirstPortlet-portlet-6.1.1.1.war不支持此版本的Liferay

时间:2015-10-07 07:28:37

标签: java liferay blacklist

我正在学习portlet,目前我无法在Liferay中运行我的portlet。 当我想在Liferay上部署我的portlet时,在我的控制台中我会收到以下消息:

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: MyFirstPortlet-portlet-6.1.1.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
07:16:25,174 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:224] Add MyFirstPortlet-portlet-6.1.1.1.war to the blacklist

我正在使用捆绑 liferay-portal-tomcat-6.2-ce-ga4

我需要另一个版本的Liferay吗?

1 个答案:

答案 0 :(得分:-1)

只需从“ liferay-versions = 6.1.20.xml”文件中删除“ liferay-versions”属性,然后重新启动服务器即可。它将解决您的问题