Fórum

Deploy 6.2 war on Liferay 7 tomcat bundle

John Plaschke, modificado 7 Anos atrás.

Deploy 6.2 war on Liferay 7 tomcat bundle

New Member Postagens: 8 Data de Entrada: 06/11/14 Postagens Recentes
I downloaded the bundle and have a empty liferay 7 running.

How do I deploy old 6.2 wars to Liferay 7?
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: Deploy 6.2 war on Liferay 7 tomcat bundle

Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
You can't. You have to upgrade them to be 7.0 compatible.

Good news, though, there's going to be sessions at the LSNA next week that will give you tools to help make this happen.








Come meet me at the LSNA!
John Plaschke, modificado 7 Anos atrás.

RE: Deploy 6.2 war on Liferay 7 tomcat bundle

New Member Postagens: 8 Data de Entrada: 06/11/14 Postagens Recentes
I have everything compiled using LR 7.
Put portlet-kernel in my pom.xml, etc

Can I basically port old LR 6.2 plugins to LR 7?
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: Deploy 6.2 war on Liferay 7 tomcat bundle

Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
Don't forget the version info in liferay-plugin-package.properties, but otherwise yes as long as the code compiles using LR7, you can build and deploy the war.








Come meet me at the LSNA!
John Plaschke, modificado 7 Anos atrás.

RE: Deploy 6.2 war on Liferay 7 tomcat bundle

New Member Postagens: 8 Data de Entrada: 06/11/14 Postagens Recentes
Thank you very much for your reply.
I have been reading your posts for others and they have been very helpful.
John Plaschke, modificado 7 Anos atrás.

RE: Deploy 6.2 war on Liferay 7 tomcat bundle

New Member Postagens: 8 Data de Entrada: 06/11/14 Postagens Recentes
Hi David,
I am having issues with getting things to run. We have a custom theme, use hooks and have portlets that use 6.2 service builder.

Do you think it would be better just to port all the code to use Liferay 7.0 and OSGI? Basically bring a bare bones LR7 up and then just add our themes, portlets, etc one by one?

I think our hooks for the login portlet are not working.

Thanks
John
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: Deploy 6.2 war on Liferay 7 tomcat bundle

Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
The theme should be rebuilt using the 7.0 tools. Liferay does have a theme upgrade tool which may help here, but I haven't used it yet myself.

Hooks are likely going to be rewritten as 7.0 OSGi modules. There's no real upgrade path here, you need to tackle these one at a time.

The portlets can be upgraded to use LR7 APIs and still deployed as wars and Liferay will redo them as WABs instead. Even the SB-based portlets can be upgraded this way.
John Plaschke, modificado 7 Anos atrás.

RE: Deploy 6.2 war on Liferay 7 tomcat bundle

New Member Postagens: 8 Data de Entrada: 06/11/14 Postagens Recentes
Thanks a lot.
It seems like I am pretty close I used the tools to upgrade the theme.

The top page of the site shows up but I think because of the hooks it is not coming up completely. Just wanted to know your thoughts. We are thinking of moving to 7.0 EE and currently think it might be best to convert to OSGI even though it will be a lot of work.

What do you think?
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: Deploy 6.2 war on Liferay 7 tomcat bundle

Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
Themes yes, hooks yes, but portlets? Depends.

If you have, say, two portlets then converting to OSGi is more of a learning experience that may serve you well.

If you have, say, twenty portlets, then converting to OSGI is going to be a lot of work that may not be necessary since Liferay supports deploying portlet wars as legacy portlets.

In general I think this would be the best path for most Liferay installs, migrate your portlets to a 7.0 SDK but keep building them as wars, then take on any new development using OSGi.
Antoine Grinenwald, modificado 7 Anos atrás.

RE: Deploy 6.2 war on Liferay 7 tomcat bundle

New Member Mensagem: 1 Data de Entrada: 12/10/16 Postagens Recentes
Hey ,

Sorry to dig this old topic, but I have a similar question.
I downloaded liferay 7, generated a new theme and started it with my 6.2 portlets inside the /deploy.
I got no error. I know it is not suppose to work, but how can I know what to modify ?
Is there a list somewhere that exist, without going through the upgrade tool SDK 7, to update a portlet ?
I read the liferay post to migrate from 6.2 to 7.0 but I don't have much knowledge about liferay and I can't find some step by step clear guide.
John Plaschke, modificado 7 Anos atrás.

RE: Deploy 6.2 war on Liferay 7 tomcat bundle

New Member Postagens: 8 Data de Entrada: 06/11/14 Postagens Recentes
There are a LOT of changes from 7.0 to 6 for liferay.
It is not easy at all. I have been developing on Liferay for over 2 years. Depending on how big the LR 6 project is, it might be better to start from scratch.

Yes not the answer you want. Personally, my company decided to delay moving to LR 7 for now
thumbnail
Alberto Chaparro, modificado 7 Anos atrás.

RE: Deploy 6.2 war on Liferay 7 tomcat bundle

Liferay Master Postagens: 549 Data de Entrada: 25/04/11 Postagens Recentes
Hi John,

Please take a look at the documentation related to how to upgrade plugins to Liferay 7:
https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/upgrading-plugins-to-liferay-7

Regards.
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: Deploy 6.2 war on Liferay 7 tomcat bundle

Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
Milestone 1 of the Liferay IDE 3.1 is supposed to be out today too. It includes a new "upgrade assistant" feature which can help you upgrade your legacy SDK to Liferay 7.

I did a session on it in the LSNA last October. It will definitely help point out those things that need to change.