Fórum

using code from 6.1.1. SDK in 6.2.1 SDK

thumbnail
Joseph John, modificado 9 Anos atrás.

using code from 6.1.1. SDK in 6.2.1 SDK

Junior Member Postagens: 75 Data de Entrada: 26/07/11 Postagens Recentes
Hi All,
I have some custom portlet code which was created for liferay portal 6.1.1 CE, now I want to try out the same cusom code in 6.2.1 SDK setup.
Copying it is not helping, since it says that versions are different.
Is there any quick may in migrating (to use) the custom portlet code which has been created from 6.1.1 SDk to 6.2.1 SDK
Advice and help requested
I am familar with IDE, but not a programmer.
thanks
Joseph John
Traolly Xiong, modificado 9 Anos atrás.

RE: using code from 6.1.1. SDK in 6.2.1 SDK

Regular Member Postagens: 195 Data de Entrada: 30/12/11 Postagens Recentes
This might be helpful.

http://www.liferay.com/community/forums/-/message_boards/message/37310322

Did you get anywhere with this effort?

Thanks.
thumbnail
meera prince, modificado 9 Anos atrás.

RE: using code from 6.1.1. SDK in 6.2.1 SDK

Liferay Legend Postagens: 1111 Data de Entrada: 08/02/11 Postagens Recentes
Hi

When the version is change generally changes might happend in DTD files and liferay-plugin-package.properties

liferay-plugin-package.properties is file where we mention about liferay version for portlet so we need to change some thing in liferay-plugin-package.properties so that portlet can be deployed..

If it major version change then definitely some of API classes might change so we need take care those ,apart from that we can change in liferay-plugin-package.properties

Obeserve following liferay-plugin-package.properties files

If Liferay 6.1

name=Sample Hibernate
module-group-id=liferay
module-incremental-version=1
tags=sample
short-description=This plugin shows how to use Hibernate in Liferay.
long-description=
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=LGPL
liferay-versions=6.1.1+,6.1.20+

If Liferay 6.2

name=Sample Hibernate
module-group-id=liferay
module-incremental-version=1
tags=sample
short-description=This plugin shows how to use Hibernate in Liferay.
long-description=
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=LGPL
liferay-versions=6.2.0+



Here if we consider liferay-versions we can see different versions like 6.1.1+ , 6.1.2+ and 6.2+
liferay-versions we can write multiple versions so that portlet can be deployed into different portals .

final thing is we need to modify version numbers in liferay-plugin-package.properties and we also need to consider if any API classes added or deprecated in newer versions.

Regards,
Meera Prince
Traolly Xiong, modificado 9 Anos atrás.

RE: using code from 6.1.1. SDK in 6.2.1 SDK

Regular Member Postagens: 195 Data de Entrada: 30/12/11 Postagens Recentes
How would you typically determine if APIs have changed / needs to replace them? We are currently trying to go from 6.1.2 to 6.2 sdk and it's looking like we might just have to rebuild the plugin and migrate the needed components one by one and then do a trail and error / test.

Any thoughts / more specific tips on how to migrate from 6.1 to 6.2?

Thanks.
thumbnail
Jitendra Rajput, modificado 9 Anos atrás.

RE: using code from 6.1.1. SDK in 6.2.1 SDK

Liferay Master Postagens: 875 Data de Entrada: 07/01/11 Postagens Recentes
There might be changes with API or in configuration files. Instead of directly copying code you can build new portlet and copy content of portlet into it.

Check this blog on how to upgrade your portlet from one version to another.

Plugin Portlet Updrade Tips
Traolly Xiong, modificado 9 Anos atrás.

RE: using code from 6.1.1. SDK in 6.2.1 SDK

Regular Member Postagens: 195 Data de Entrada: 30/12/11 Postagens Recentes
Thanks for the response and link. It will come in use.
thumbnail
Zsolt - Jácint Balogh, modificado 9 Anos atrás.

RE: using code from 6.1.1. SDK in 6.2.1 SDK

Junior Member Postagens: 91 Data de Entrada: 09/10/13 Postagens Recentes
Hi all,

I have the same problem, I have a custom portlet developed in liferay 6.1.2 and now I have to use it no liferay 6.2.
First I get :com.liferay.portal.NoSuchResourceActionException ... #AD_TO_PAGE.

I updated the versions in the plugin package and in the liferay-display.xml to 6.2 and now I get the com.liferay.portal.NoSuchResourceActionException: ...#VIEW.

It would be great if somebody could tell us what should be the best solution to handle this.

I will tried this "permissions.user.check.algorithm = 5 " but still not works,

Regards,
Zsolt
thumbnail
Olaf Kock, modificado 9 Anos atrás.

RE: using code from 6.1.1. SDK in 6.2.1 SDK

Liferay Legend Postagens: 6396 Data de Entrada: 23/09/08 Postagens Recentes
just checking the obvious: You're quoting "AD_TO_PAGE", but Liferay rather checks for "ADD_TO_PAGE"... typo in the forum post or in your plugin?