0
votes

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?

1
What version of liferay are you using?Parkash Kumar
liferay-portal-tomcat-6.2-ce-ga4.Adrian Buciuman
And the portlet you are deploying is built using Liferay 6.1, which is not compatible.Parkash Kumar
Create new portlet in current portal instance. Move files of old portlet to the newly created portlet and deploy again.Parkash Kumar
To make it more clear: JAVA_HOME should be C:\Program Files\Java\jdk1.8.0_60 without the bin.Tobias Liefke

1 Answers

-1
votes

Just remove "liferay-versions" property from "liferay-versions=6.1.20.xml" file and restart the server.It will solve your problem