简体   繁体   中英

MyFirstPortlet-portlet-6.1.1.1.war does not support this version of Liferay

I'm learning portlets and at the moment I'm not able to run my portlet in Liferay. When I want to deploy my portlet on Liferay, in my console I receive this messages:

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

I'm using the bundle liferay-portal-tomcat-6.2-ce-ga4

Do I need another version of Liferay?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM