<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8" /><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class="" /><meta charset="UTF-8" class="" /></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi David,<br>
<br>
in my case the errors were gone after I re-activated (was only commented out) the xmlpage in config/opencms-workplace.xml and restarted Tomcat.<br>
And after that all other actions like Info, Properties, Source-edit on the imported html (xmlpage) worked too.<br>
I'm no OpenCms expert yet and it seems to me that your issue is different, but maybe it's a helpful hint to look at the workplace config.<br>
<br>
HTH<br>
Gerd<br><br><div class="gmail_quote">Am 14. Februar 2017 10:55:53 MEZ, schrieb "David Rodríguez Merino" <david.rodriguez.merino@uva.es>:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all,<div class=""><br class="" /></div><div class="">We have the same problem. We are importing containterpages and .config from the version 9.0.1 and 10.0.1 with an export-import in LaunchPad. After import, we update the contents to resolve any schema change without problem.</div><div class=""><br class="" /></div><div class="">The contents are in opencms and in the database, but when you do a mouse over or a click, you have the error about the small icon.</div><div class=""><br class="" /></div><div class="">We tried debug the code, but we can’t do it in eclipse because it’s an vaadin error.</div><div class=""><br class="" /></div><div class="">Thanks</div><div class=""><br class="" /></div><div class=""><br class="" /></div><div class=""><br class="" /></div><div class=""><br class="" /><div><blockquote type="cite" class=""><div class="">El 13 feb 2017, a las 17:55, Gerd Schrick <<a href="mailto:mail@schrick-design.de" class="">mail@schrick-design.de</a>>
escribió:</div><br class="Apple-interchange-newline" /><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Alex,<br class="" />
<br class="" />
thanks a lot for your reply.<br class="" />
<br class="" />
Yes, Lenya's content is in xml and the content I'd like to import as well.<br class="" />
I already did many batch conversations/cleanups of xml/html with ANT and its possibilities (with heavy use of XSLT transformations).<br class="" />
So this would be no "big deal" for me to somehow "redesign" and prepare the data to be imported in OpenCms.<br class="" />
<br class="" />
But how can I then get the data into OpenCms?<br class="" />
I assume the only way is thru some kind of import procedure that ensures the correct handling (e.g. assigning uuids, link processing, add system related properties, storing in the right places etc.) - at least that was how I did / have to do it in Lenya.<br class="" />
<br class="" />
What other options are there in OpenCms to "import"?<br class="" />
Directly to the VFS?<br class="" />
What is the correct format that I have to prepare for that?<br class="" />
Is there some documentation on this?<br class="" />
<br class="" />
Sorry to bother you with all these questions, but I have not found anything helpful in the web yet - although I assume that this topic is/was relevant for most of the customers.<br class="" />
Maybe it's just so easy and obvious that I've overlooked it already ;-)<br class="" />
<br class="" />
<br class="" />
Thanks for your help!<br class="" />
<br class="" />
Gerd<br class="" /><br class="" /><div class="gmail_quote">Am 13. Februar 2017 08:51:24 MEZ, schrieb Alex Kandzior <<a href="mailto:alex@opencms.org" class="">alex@opencms.org</a>>:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Gerd,<div class=""><br class="" /></div><div class="">the extended HTML import function you are trying to use is - in it's current implementation - compatible only with XmlPages.</div><div class=""><br class="" /></div><div class="">The XmlPage technology has been replaced by the ContainerPage technology between OpenCms 7 and 8.</div><div class=""><br class="" /></div><div class="">XmlPages where using large chunks of (quite unstructured) HTML blobs to create a page. These blobs where stored inside of the page itself.</div><div class=""><br class="" /></div><div class=""><div class="">Container pages today contain just pointers to a set of content elements. Each content element is a structured XML content stored in a separate file.</div></div><div class=""><br class="" /></div><div class="">For backward compatibility, XmlPages are still supported in OpenCms today BUT the templates and demos all use container pages.</div><div class="">You need to enable support for XmlPages fi
rst by
adding the configuration for this resource type in openms-vfs.xml and also opencms-workplace.xml.</div><div class=""><br class="" /></div><div class="">You would then need to create an XmlPage compatible template in order to see the imported XmlPages displayed.</div><div class=""><br class="" /></div><div class=""><br class="" /></div><div class="">Maybe another approach for content migration is more suitable:</div><div class=""><br class="" /></div><div class="">I have no idea about how your content is structured in Lenya, but IIRC Lenya also was XML based with XSLT transformation. </div><div class=""><br class="" /></div><div class="">Maybe you can try to transform your existing contents directly to OpenCms XML content types by XSLT?</div><div class=""><div class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class="" />Kind regards,<br class="" />Alex.<br class="" /><br class="" />-------------------<br class="" />Alexander Kandzior<br class="" /><br class="" />Alkacon Software - The OpenCms Experts <br class="" /><a href="http://www.alkacon.com/" class="">http://www.alkacon.com</a> - <a href="http://www.opencms.org/" class="">http://www.opencms.org</a> &
nbsp;
<br class="" /><br class="" /><br class="" /></div>
</div>
<br class="" /><div class=""><blockquote type="cite" class=""><div class="">Am 12.02.2017 um 23:48 schrieb Gerd Schrick <<a href="mailto:mail@schrick-design.de" class="">mail@schrick-design.de</a>>:</div><br class="Apple-interchange-newline" /><div class="">
<div class=""><p class="">Dear List,<br class="" /></p><p class="">a short introduction:<br class="" />after about 10 years of intensive develop and maintenance work for a large website + mobile and some smaller (still productive) with the Open Source CMS "Apache Lenya" (and Cocoon 2.1) I re-discovered OpenCms (used it about 13 yrs ago for some smaller sites) as a potential replacement for Lenya.<br class="" />Already evaluated some other in theory and "quickly" tested some of them (Hippo amongst others).<br class="" />I really was impressed by what I read about OpenCms (partly unbelivable ;-) and about 2 weeks ago i finally installed it (Arch Linux, MariaDB, Java 8, Tomcat 8) ... and the more I play with it the more I love it :-)<br class="" /></p><p class="">My question or "problem" regards to the "Extended HTML Import":<br class="" /></p><p class="">I installed the official 10.5.0 release with the default settings including the Apollo Example.<br class="" />With help of th
e good
documentation I've set up an additional site (my evaluation prototype) for three languages (de, en, fr; SingleTree) with just a simple Template (+ Model) with only one Container.<br class="" />This works very well.<br class="" /></p><p class="">To kind of "finalize" my prototype and show it to the customer I need to fill it with content (about 1.500 documents, each html in 3 langs + a PDF per doc)).<br class="" /></p><p class="">With a small amount of testpages (6 folder + 5 docs + 5 PDFs) I tried the Extended HTML Importer.<br class="" />After adding "head|Head Element,body|Body Element,foot|Foot Element" to the template's "template-elements" property (found this hint somewhere in the I-net) the import run was successfull w/o errors.</p><p class="">BUT:</p><p class="">- the imported content/page is only shown when I use <cms:include element="body" editable="true"/> instead of <cms:container .../> (else I get an error) but this way the created (not imported)
content
is not shown (obviously)<br class="" /></p><p class="">- no edit option in the page editor available<br class="" /></p><p class="">- in EXPLORER I can't navigate to the imported data; when expanding the parent folder (subfolder in my prototype site) the arrow in front of the the folder icon rotates to point downward but nothing happens; on hover (over the folder) a kind of tooltip shows in red an Exception. In the OpenCms log I found:<br class="" />ERROR [din.server.DefaultErrorHandler: 58]<br class="" />java.lang.NullPointerException<br class="" /> at org.opencms.ui.components.CmsResourceIcon.getSmallTypeIconURI(CmsResourceIcon.java:393)<br class="" /> at org.opencms.ui.components.CmsResourceIcon.getIconInnerHTML(CmsResourceIcon.java:300)<br class="" />:<br class="" />and<br class="" />ERROR [encms.ui.CmsVaadinErrorHandler: 80]<br class="" />Invocation of method itemClick in org.opencms.ui.apps.CmsFileExplorer$9 failed.<br clas=""
s="" class="" />com.vaadin.event.ListenerMethod$MethodException: Invocation of method itemClick in org.opencms.ui.apps.CmsFileExplorer$9 failed.<br class="" /> at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:533)<br class="" />:<br class="" /></p><p class="">- in the SITEMAP I can navigate to the imported data (an icon with'?' is shown for the imported pages) and in "Resources" view I see all the folders, pages and PDFs in the correct structure, and can access/edit (props) the folders and PDFs BUT NOT the imported HTML pages; when accessing their PROPERTIES or INFO:<br class="" />the dialog shows: "java.lang.NullPointerException: No description available."<br class="" />and the log:<br class="" />ERROR [ org.opencms.gwt.CmsGwtService: 183] <br class="" />java.lang.NullPointerException<br class="" /> at org.opencms.gwt.CmsVfsService.addPageInfo(CmsVfsService.java:345)<br class="" />:<br class="" />and<br class="" />ERROR [
org.opencms.gwt.CmsLogService: 66] Client LOG (Host 192.168.178.41, Address 192.168.178.41, Ticket 1486935332797): null<br class="" />org.opencms.gwt.CmsVfsService.addPageInfo(CmsVfsService.java:345)<br class="" />:<br class="" /></p><p class="">For testing, I imported the 7.0.0 documentation module + the documentation for the Extended HTML Import and XMLContent what shows the same behaviour in Explorer and Sitemap.<br class="" /></p><p class=""><br class="" /></p><p class="">Have I missed something to add/configure?<br class="" />Is this import feature incompatible with version 10.5.0?<br class="" /></p><p class="">Stumbled over the class<br class="" /><a href="https://github.com/alkacon/opencms-core/blob/branch_10_5_x/src-modules/org/opencms/workplace/tools/database/CmsHtmlImport.java" class="">https://github.com/alkacon/opencms-core/blob/branch_10_5_x/src-modules/org/opencms/workplace/tools/database/CmsHtmlImport.java</a><br class="" />that it guess this handling the
import
(is this correct?) ...<br class="" />detected there (line 1137) that a "CmsXmlPage" page is created ...<br class="" />and it seems to me as if there is no (more) support for the "xmlpage" resourcetype in 10.5.0 what causes the issue (I'm just guessing, as I didn't found a way to create a "XmlPage" in the system, only a ContainerPage with XmlContent).<br class="" /></p><p class=""><br class="" /></p><p class="">Is there a way to get this working somehow? maybe some kind of "hack" afterwards in the DB (changing some values)?<br class="" />For the prototype it does not have to be perfect.<br class="" />Also thought about a custom build (already set up the environment as described and git-cloned the core :-) or to create an import module based on the Extended HTML Import code ...<br class="" /></p><p class=""><br class="" /></p><p class="">Sorry for the long but hopefully explanatory text.<br class="" /></p><p class="">Thank you very much for your help on this!<br class="" /></p><p
class="">Best regards,<br class="" />Gerd<br class="" /></p></div>
_______________________________________________<br class="" />This mail is sent to you from the opencms-dev mailing list<br class="" />To change your list options, or to unsubscribe from the list, please visit<br class="" /><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" class="">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br class="" /><br class="" /><br class="" /><br class="" /></div></blockquote></div><br class="" /></div><div style="margin-top: 2.5em; margin-bottom: 1em; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(0, 0, 0);" class=""><br class="webkit-block-placeholder" /></div><pre class="k9mail"><hr class="" /><br class="" />This mail is sent to you from the opencms-dev mailing list<br class="" />To change your list options, or to unsubscribe from the list, please visit<br class="" /><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev"
class="">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br class="" /><br class="" /><br class="" /><br class="" /></pre></blockquote></div></div>_______________________________________________<br class="" />This mail is sent to you from the opencms-dev mailing list<br class="" />To change your list options, or to unsubscribe from the list, please visit<br class="" /><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" class="">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br class="" /><br class="" /><br class="" /><br class="" /></div></blockquote></div><br class="" /></div><p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />This mail is sent to you from the opencms-dev mailing list<br />To change your list options, or to unsubscribe from the list, please visit<br /><a
href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br /><br /><br /><br /></pre></blockquote></div></body></html>