Foren

Error while importing LAR file

Mohamed Faisal, geändert vor 13 Jahren.

Error while importing LAR file

Junior Member Beiträge: 90 Beitrittsdatum: 12.08.09 Neueste Beiträge
Hi,

We are migrating our application from Liferay version 5.2.3 to version 6.0.5. we have done database migration successfully. While importing LAR file to version 6.0.5, we are getting following error:

06:55:09,371 ERROR [ImportPagesAction:73] com.liferay.portal.kernel.exception.SystemException: com.thoughtworks.xstream.mapper.CannotResolveClassException: layout : layout
com.liferay.portal.kernel.exception.SystemException: com.thoughtworks.xstream.mapper.CannotResolveClassException: layout : layout
at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:690)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


We have done the following steps to import LAR file to version 6.0.5

1. Exported Lar file from version 5.2.3

2. Changed the version number 5203 to 6005 in manifest.xml

3. Imported the updated Lar file for version 6.0.5

after that we got the above Error. Can any one help me to fix this issue?.

Thanks and Regards,
Faisal
thumbnail
Juan Fernández, geändert vor 13 Jahren.

RE: Error while importing LAR file

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Hi Mohamed:
that's not the way you're supposed to upgrade a Liferay installation.

Liferay has its own upgrading process that are automatically launched when you point your new Liferay to your old database. These processes do all the work for you.

So there's no need of exporting and importing a lar from different versions

The only exception is the Data folder, that you have to copy to the new Liferay installation.

Regards