[opencms-dev] error on several structured content items in Workplace Explorer (e.g. article)

Paul-Inge Flakstad flakstad at npolar.no
Mon May 18 00:50:08 CEST 2009


Hi Frank

You will have to restart your server (e.g. Tomcat) after adding new resource types before you can create an instance of the new resource type.

If this does not solve your problem, take a look at your XSD files and check for errors. There's really no way to tell from the exception stack trace exactly where the error is, but at line four from the top, you see a reference to the CmsXmlContentDefinition class.

Check that your link paths to other XSDs are correct, that you've followed the naming rules (the plural "s" where required, and so on), and that your element type names are correct.

I've encountered this exception several times, most times the problem has been a typo in one or more of my XSD files.

Hope this helps.

Cheers,
-Paul


________________________________
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Frank Pertack
Sent: 17. mai 2009 20:37
To: opencms-dev at opencms.org
Subject: [opencms-dev] error on several structured content items in Workplace Explorer (e.g. article)


hello,

I am trying to build a page with the "structured content" ("strukturierter Inhalt") in OpenCms 7.05.
After the Input of the filename (create a new file) and pressing "continue >>" I get the following error:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


ErrorUnmarshalling XML document failed.
Reason: null Nested exception: null



org.opencms.xml.CmsXmlException: Unmarshalling XML document failed.
at org.opencms.xml.CmsXmlUtils.unmarshalHelper(CmsXmlUtils.java:654)
at org.opencms.xml.CmsXmlUtils.unmarshalHelper(CmsXmlUtils.java:617)
at org.opencms.xml.CmsXmlContentDefinition.unmarshal(CmsXmlContentDefinition.java:252)
at org.opencms.file.types.CmsResourceTypeXmlContent.createResource(CmsResourceTypeXmlContent.java:138)
at org.opencms.file.CmsObject.createResource(CmsObject.java:733)
at org.opencms.workplace.explorer.CmsNewResourceXmlContent.actionCreateResource(CmsNewResourceXmlContent.java:180)
at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.newresource_005fxmlcontent_jsp._jspService(newresource_005fxmlcontent_jsp.java:77)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:1168)
at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964)
at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1498)
at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152)
at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by: org.dom4j.DocumentException: null Nested exception: null
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.opencms.xml.CmsXmlUtils.unmarshalHelper(CmsXmlUtils.java:652)
... 37 more
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Does anybody have an idea why I get that error and what I have to do to get rid of that?
I didn't occur in the beginning, before I adapted the example "opencms-sausage"-website.

Thank you in advance.

Frank Pertack

Frank Pertack


Vater Solution GmbH
Liebigstraße 26
24145 Kiel

Telefon: +49 431 20084-210
Telefax: +49 431 20084-222
Mobil: +49 151 16353519
mailto: fpertack at vater-gruppe.de
http://www.vater-gruppe.de

Amtsgericht Kiel, HRB 6403
Geschäftsführer:
Klaus-Hinrich Vater
Michael Wiese
-----
Diese Email enthält ggfs. vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese Email irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Email. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Email sind nicht gestattet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090518/8ec13aad/attachment.htm>


More information about the opencms-dev mailing list