Fórum

Issue in Migrating web contents using LAR Files

thumbnail
Manish Kumar Jaiswal, modificado 10 Anos atrás.

Issue in Migrating web contents using LAR Files

Regular Member Postagens: 153 Data de Entrada: 25/11/08 Postagens Recentes
Hi Everyone ,

I am facing some issue in migrating contents using LAR files in Liferay Bundle. I am trying to migrate contents from one LR instance to the other having same version.

1) My Structure/Templates are in global scope .
2) When I Try to migrate Only Structure/Templates in global scope through LAR files it works .
3) When I try to migrate Web Contents which has been created in an organization using these Structure/Templates (which are in global scope) this LAR file doesn't work .

Following is the stacktrace :

13:19:11,812 ERROR [http-bio-8180-exec-3][ExportImportAction:303] com.liferay.portal.kernel.lar.PortletDataException: com.liferay.portlet.journal.StructureNameException
com.liferay.portal.kernel.lar.PortletDataException: com.liferay.portlet.journal.StructureNameException
at com.liferay.portal.kernel.lar.BasePortletDataHandler.importData(BasePortletDataHandler.java:82)
at com.liferay.portal.lar.PortletImporter.importPortletData(PortletImporter.java:1056)
at com.liferay.portal.lar.PortletImporter.importPortletData(PortletImporter.java:996)
at com.liferay.portal.lar.PortletImporter.doImportPortletInfo(PortletImporter.java:439)
at com.liferay.portal.lar.PortletImporter.importPortletInfo(PortletImporter.java:141)
at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importPortletInfo(LayoutLocalServiceImpl.java:1460)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:320)

.

Any Ideas .How can we resolve this ?

Regards
Manish
thumbnail
Gnaniyar Zubair, modificado 10 Anos atrás.

RE: Issue in Migrating web contents using LAR Files

Liferay Master Postagens: 722 Data de Entrada: 19/12/07 Postagens Recentes
Recently we come across this situation Manish.

This StructureName Exception is for mismatching the webcontents article / Structure / Template from one LR instance to another instance. we are facing this issue because of localization. In LR-1 instance we have added all the articles / structures / templates with English and Arabic, and LR-2 instance we changed the locale Arabic only and trying to import the LAR file from LR-1.. So we got that issue and resolved successfully by manually correcting the Structures and Templates in xml file inside the LAR by adding en_US and ar_SA in all the template.

Please Make sure your both instance are same.

HTH