Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Problem when import my custom porlet
I have a problem when i try import my porlet
19:37:52,967 WARN [liferay/background_task-1][PortletImportBackgroundTaskExecutor:94] Unable to import portlet: com.thoughtworks.xstream.mapper.CannotResolveClassException: testservice.model.impl.MemoImpl
19:37:53,110 ERROR [liferay/background_task-1][BackgroundTaskMessageListener:164] Unable to execute background task
com.liferay.exportimport.kernel.lar.PortletDataException: com.thoughtworks.xstream.mapper.CannotResolveClassException: testservice.model.impl.MemoImpl
That it's my XML
<testservice.model.impl.MemoImpl>
<__cachedModel>false</__cachedModel>
<__new>false</__new>
<__uuid>055fc10a-def3-d1a4-263f-9608929294e7</__uuid>
<__originalUuid>055fc10a-def3-d1a4-263f-9608929294e7</__originalUuid>
<__memoriaId>186659</__memoriaId>
<__groupId>142773</__groupId>
<__originalGroupId>142773</__originalGroupId>
<__setOriginalGroupId>false</__setOriginalGroupId>
<__companyId>20116</__companyId>
<__originalCompanyId>20116</__originalCompanyId>
<__setOriginalCompanyId>false</__setOriginalCompanyId>
<__userId>20164</__userId>
<__userName>Test Test</__userName>
<__createDate class="sql-timestamp">2017-04-25 00:00:00.0</__createDate>
<__modifiedDate class="sql-timestamp">2017-04-25 00:00:00.0</__modifiedDate>
<__setModifiedDate>false</__setModifiedDate>
<__title>Ejemplo2</__title>
<__memoriaYear>2011</__memoriaYear>
<__image>/o/igemar-theme/src/favicon.png</__image>
<__url>http://www.google.com</__url>
<__columnBitmask>0</__columnBitmask>
19:37:52,967 WARN [liferay/background_task-1][PortletImportBackgroundTaskExecutor:94] Unable to import portlet: com.thoughtworks.xstream.mapper.CannotResolveClassException: testservice.model.impl.MemoImpl
19:37:53,110 ERROR [liferay/background_task-1][BackgroundTaskMessageListener:164] Unable to execute background task
com.liferay.exportimport.kernel.lar.PortletDataException: com.thoughtworks.xstream.mapper.CannotResolveClassException: testservice.model.impl.MemoImpl
That it's my XML
<testservice.model.impl.MemoImpl>
<__cachedModel>false</__cachedModel>
<__new>false</__new>
<__uuid>055fc10a-def3-d1a4-263f-9608929294e7</__uuid>
<__originalUuid>055fc10a-def3-d1a4-263f-9608929294e7</__originalUuid>
<__memoriaId>186659</__memoriaId>
<__groupId>142773</__groupId>
<__originalGroupId>142773</__originalGroupId>
<__setOriginalGroupId>false</__setOriginalGroupId>
<__companyId>20116</__companyId>
<__originalCompanyId>20116</__originalCompanyId>
<__setOriginalCompanyId>false</__setOriginalCompanyId>
<__userId>20164</__userId>
<__userName>Test Test</__userName>
<__createDate class="sql-timestamp">2017-04-25 00:00:00.0</__createDate>
<__modifiedDate class="sql-timestamp">2017-04-25 00:00:00.0</__modifiedDate>
<__setModifiedDate>false</__setModifiedDate>
<__title>Ejemplo2</__title>
<__memoriaYear>2011</__memoriaYear>
<__image>/o/igemar-theme/src/favicon.png</__image>
<__url>http://www.google.com</__url>
<__columnBitmask>0</__columnBitmask>
Indicates the service bundle providing the Memo service, your testservice module, has not been deployed/started.
Come meet me at the 2017 LSNA!
Come meet me at the 2017 LSNA!
The service is deploy and started, the export service works fine, but the import returns that message
"The portlet can not be imported: com.thoughtworks.xstream.mapper.CannotResolveClassException: testservice.model.impl.MemoImpl"
"The portlet can not be imported: com.thoughtworks.xstream.mapper.CannotResolveClassException: testservice.model.impl.MemoImpl"
I have the same issue, did you manage to solve this?
Has anybody could solve this problem. I have the same issue with Liferay 7.0 DXP. Thanks!
Joaquin Cabal:
Has anybody could solve this problem. I have the same issue with Liferay 7.0 DXP. Thanks!
Still on the latest fixpack? (which one are you running?) Have you opened a ticket with support to discuss this?
If you want to discuss this in public, on volunteer's support: Please give steps to reproduce. As it is described above, it'll take a lot of efforts, guesses and assumptions to reproduce.
Thanks Olaf I could fix the issue with this post: https://liferay.dev/forums/-/message_boards/message/114203877
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™