AW: [opencms-dev] 5RC1-trouble - can't add new pages anymore
Sven Dittmar
dittmar at rus.uni-stuttgart.de
Mon Jan 27 13:49:17 CET 2003
Hi Hans,
> this is an XML parsing error (so nothing in particular with opencms).
Agreed if you believe the error message. :-)
But the "/system/bodies/studierende/tes.html" is not XML but HTML.
It's the concent of the page.
Maybe the error message is an aftereffect (Folgefehler) of some other error?
Correct me if I am wrong, but OC creates a body for any new file
including only "<P> <P>" and usually that works.
Our XML-templates are all correct (existing pages work fine with all of
them) with corrosponding "<!CDATA[" syntax.
That's why I don't understand the error message...
I think my problem is somehow related to my changes with file-access and
groups and ownerships but I can't the trees in the forest because of all
the trees... ;-)
--Sven
>
> If you use an entity like " " in an XML-file it must have been declared.
>
> The following will produce such an error (with ANY XML parser).
>
> <TEMPLATE>
> Hello World
> </TEMPLATE>
>
> try this, it will be correctly parsed:
>
> <TEMPLATE>
> <![CDATA[Hello World]]>
> </TEMPLATE>
>
> Generally you should put HTML-fragments into a CDATA section.
>
> CDATA section starts with
>
> <![CDATA[
>
> and ends with
>
> ]]>
>
>
>
>
> Best regards,
>
> Hans
>
> -----Ursprüngliche Nachricht-----
> Von: Sven Dittmar [mailto:dittmar at rus.uni-stuttgart.de]
> Gesendet: Montag, 27. Januar 2003 11:48
> An: opencms-dev
> Betreff: [opencms-dev] 5RC1-trouble - can't add new pages anymore
>
>
> Hi all,
>
> I changed groups, templates and access-data last week (had to change the
> control-file manually afterwards) and today I am not able to add new
> pages anymore (existing pages still work fine).
>
> If I try create a new page (with any user even admin) I get the
> following messages:
>
> ==> webapps/opencms/WEB-INF/logs/opencms.log <==
>
> [27.01.2003 11:33:22] <opencms_critical> [CmsXmlTemplateFile] Cannot
> parse XML file "/system/bodies/studierende/tes.html".
> org.xml.sax.SAXParseException: The entity "nbsp" was referenced, but not
> declared.
> [27.01.2003 11:33:22] <opencms_info> [CmsElementXml
> (CmsNewResourcePage/explorer_files_new_page)] Error in getContent for
> template class com.opencms.workplace.CmsNewResourcePage
>
> ==> logs/catalina.out <==
> [Fatal Error] :2:10: The entity "nbsp" was referenced, but not declared.
>
> I don't have a clue what's wrong here and neither do I understand the
> messages above...
>
> The wanted new file will be created in the filesystem nevertheless but
> it's not editable/usuable then.
>
> Has anyone experienced something similar?
>
> Thanks for any input,
More information about the opencms-dev
mailing list