Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-46980

LAR importing of events with comments fails with com.thoughtworks.xstream.mapper.CannotResolveClassException

    Details

      Description

      When importing a LAR containing calendar bookings with comments, the com.thoughtworks.xstream.mapper.CannotResolveClassException exception is thrown.

      Steps to reproduce

      Creating a site calendar
      1. Deploy the calendar portlet; add it to a page.
      2. Click in the "Current site calendars" arrow; click in "Add Calendar"
      3. In the calendar configuration window, enter a name for it and check the "Enable comments" checkbox. Save the calendar.
        Creating commented event
      4. Add an event in the newly created calendar.
      5. Click on the event; click in "View Details".
      6. Click in "Be the first." Enter a content for the comment. Click in "Reply"
      7. Close the "View Details" window.
        Exporting pages
      8. Go to "Admin" (at top right) and then click in "Site Administration."
      9. In the "Site pages" section, click in "Export". In the new screen, click in "Export"
      10. In the new screen, at the "Download" column of the table, click in the link.
        Importing the page
      11. Click in "Admin", then in "Control Panel"
      12. Click in "Sites." Click in "Add", then in "Blank Site"
      13. Enter a name to the site. Save it.
      14. In the new screen, click in "Pages", then "Site Pages"
      15. Click in "Import"
      16. Drag the downloaded LAR file to the dashed area (or upload it clicking in "Select File")
      17. Click in "Continue", then in "Continue" again, then in "Import".

      Expected results

      • A "Successful" message will apear.

      Actual results

      • A "Failed" message appears.
      • In its "Details", there is the message:
      An unexpected error occurred with the publication process. Please check your portal and publishing configuration.
      com.thoughtworks.xstream.mapper.CannotResolveClassException: com.liferay.portlet.messageboards.model.impl.MBMessageImpl
      

        Attachments

        1. Calendar-201405231702.portlet.lar
          14 kB
          Adam Brandizzi
        2. calendar-portlet-7.0.0.1.war
          1.82 MB
          Adam Brandizzi
        3. Public_Pages-201405231251.lar
          33 kB
          Adam Brandizzi

          Issue Links

            Activity

              People

              Assignee:
              linda.sui Linda Sui
              Reporter:
              adam.brandizzi Adam Brandizzi
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 39 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.0 M1