Fórum

.war does not support this version of Liferay

Dipak Jadhav, modificado 11 Anos atrás.

.war does not support this version of Liferay

New Member Postagens: 9 Data de Entrada: 02/04/13 Postagens Recentes
Hi,
I have created the portlet on my community edition. I have created a .war file for that portlet from Eclipse using "Export" functionality.
I want to deploy this .war file on Liferay Enterprise Edition. I have 30 day's trial version. I am getting ".war does not support this version of Liferay " .

Could you please tell me how to resolve this?

Thanks,
Dipak
thumbnail
David H Nebinger, modificado 11 Anos atrás.

RE: .war does not support this version of Liferay

Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
1) You should use the SDK for the environment you're targeting, in this case you'd use the EE SDK.
2) The liferay-plugin-package.properties file defines the version the plugin is for, so you probably have it set for the CE version and not the EE version.
thumbnail
Pradeep Kumar Badhai, modificado 11 Anos atrás.

RE: .war does not support this version of Liferay (Resposta)

Junior Member Postagens: 50 Data de Entrada: 06/09/11 Postagens Recentes
Deepak, David gave you the best answer. Try to modify your liferay-plugin-package.properties file with this set

name=Your Portlet Name
module-group-id=liferay-ee
module-incremental-version=1
tags=
short-description=
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=EE
liferay-versions=6.1.20

Also you can try: Copy your docroot folder of CE Edition and create a new project in EE with the same name and delete the docroot of EE workspace and paste the CE edition docroot to the new EE edition portlet project. Now create the war. Try it. it will for sure works. Enjoy !
Dipak Jadhav, modificado 11 Anos atrás.

RE: .war does not support this version of Liferay

New Member Postagens: 9 Data de Entrada: 02/04/13 Postagens Recentes
Thanks Pradeep. It is working.
thumbnail
Manish Yadav, modificado 11 Anos atrás.

RE: .war does not support this version of Liferay

Expert Postagens: 493 Data de Entrada: 26/05/12 Postagens Recentes
Hi Deepak, you can also modify build.properties in plugin folder
change lp.version property value to
lp.version=6.1.20

after changing value create one more time war file